文档中心 > API类目 > 淘宝小程序API

taobao.miniapp.sync.use.relation (外部渠道小程序同步使用关系)

外部小程序同步使用关系到淘宝小程序

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
app_id String 必须 12312312312 主体小程序ID
channel String 必须 wx 渠道标识微信wx 支付宝ap
relation_id String 必须 32423421312 关联主体小程序ID

响应参数

名称 类型 示例值 描述
succ Boolean false 是否成功
error String 3412 错误码
model Boolean true 是否绑定成功
message String use_relation_error 错误信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
MiniappSyncUseRelationRequest req = new MiniappSyncUseRelationRequest();
req.setAppId("12312312312");
req.setChannel("wx");
req.setRelationId("32423421312");
MiniappSyncUseRelationResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<miniapp_sync_use_relation_response>
    <succ>false</succ>
    <error>3412</error>
    <model>true</model>
    <message>use_relation_error</message>
</miniapp_sync_use_relation_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部