dingtalk.oapi.alitrip.btrip.bind.taobao.get (获取绑定的淘宝账号信息)

获取绑定的淘宝账号信息(商旅预订过程中需要绑定淘宝帐号),用于查看当前绑定的淘帐号信息,如需更换,可通过解绑接口进行解绑。

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
request UserBindInfoRq 必须 请求对象
  • └ corpid
  • String
  • 必须
  • ding12312312
  • 企业id
  • └ userid
  • String
  • 必须
  • 123123
  • 用户id

响应参数

名称 类型 示例值 描述
success Boolean true 成功标识
result UserTaoBaoInfo module 结果对象
  • └ taobao_info
  • String
  • 123xxxxxxxxx
  • 淘宝帐号
  • └ alipay_info
  • String
  • 137xxxxxxxxx
  • 关联的支付宝帐号
errcode Number 0 错误码
errmsg String 成功 错误信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
DingTalkClient client = new DefaultDingTalkClient("https://oapi.dingtalk.com/topapi/alitrip/btrip/bind/taobao/get");
OapiAlitripBtripBindTaobaoGetRequest req = new OapiAlitripBtripBindTaobaoGetRequest();
UserBindInfoRq obj1 = new UserBindInfoRq();
obj1.setCorpid("ding12312312");
obj1.setUserid("123123");
req.setRequest(obj1);
OapiAlitripBtripBindTaobaoGetResponse rsp = client.execute(req, access_token);
System.out.println(rsp.getBody());

响应示例

  • JSON示例
{
    "success":true,
    "result":{
        "taobao_info":"123xxxxxxxxx",
        "alipay_info":"137xxxxxxxxx"
    },
    "errcode":0,
    "errmsg":"成功"
}

异常示例

  • JSON示例
{
	"errcode":88,
	"errmsg":"ding talk error"
}

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部