创建绑定关系
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
param_bind_request | BindRequest | 必须 | 绑定请求 | ||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | Result | 接口返回model | |
|
1 2 3 4 5 6 7 8 9 10 11 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AccountlinkBindCreateRequest req = new AccountlinkBindCreateRequest(); AccountlinkBindCreateRequest.BindRequest obj1 = new AccountlinkBindCreateRequest.BindRequest(); AccountlinkBindCreateRequest.BindDo obj2 = new AccountlinkBindCreateRequest.BindDo(); obj2.setExternalAccessToken( "xxxxxxxx" ); obj2.setEid( "223232" ); obj1.setBindDo(obj2); obj1.setOpenSid( "xxxxxxx" ); req.setParamBindRequest(obj1); AccountlinkBindCreateResponse rsp = client.execute(req); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | < accountlink_bind_create_response > < result > < code >1</ code > < data > < access_token_response > < taobao_access_token >xxxxx</ taobao_access_token > < expire_time >11111</ expire_time > </ access_token_response > < hid >1</ hid > </ data > < message >SUCCESS</ message > < successful >true</ successful > </ result > </ accountlink_bind_create_response > |
1 2 3 4 5 6 | < error_response > < code >50</ code > < msg >Remote service error</ msg > < sub_code >isv.invalid-parameter</ sub_code > < sub_msg >非法参数</ sub_msg > </ error_response > |
错误码 | 错误描述 | 解决方案 |
---|