人工智能实验室精灵用户绑定第三方账号信息接口,开放给Iot厂商做为厂商上送第三方账号信息的接口
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
serial_no | String | 可选 | 2018090911AA2-A1212 | 交易流水号(唯一即可,不参与业务运算) | |
ext_user_type | String | 可选 | 1000: 淘宝 | 第三方用户类型 | |
ext_user_id | String | 可选 | 2222222 | 第三用户ID | |
req_time | String | 可选 | 20180404112233 | 请求时间 | |
merchant_user_id | String | 可选 | 11111111 | 商户的用户的唯一ID | |
schema_key | String | 可选 | demo_schemakey_23232323 | 开放平台申请的schema |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
message | String | 交易成功 | 交易结果描述(例如: 交易成功、交易失败) |
status_code | Number | 200 | 交易结果码(200:成功、其他:失败) |
result | Json | null | 扩展字段,无用 |
message_detail | String | 交易成功 | 交易结果详细描述(例如:用户已经存在,交易失败) |
1 2 3 4 5 6 7 8 9 10 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AlibabaAiUserQuickBindRequest req = new AlibabaAiUserQuickBindRequest(); req.setSerialNo( "2018090911AA2-A1212" ); req.setExtUserType( "1000: 淘宝" ); req.setExtUserId( "2222222" ); req.setReqTime( "20180404112233" ); req.setMerchantUserId( "11111111" ); req.setSchemaKey( "demo_schemakey_23232323" ); AlibabaAiUserQuickBindResponse rsp = client.execute(req); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 | < alibaba_ai_user_quick_bind_response > < message >交易成功</ message > < status_code >200</ status_code > < result >null</ result > < message_detail >交易成功</ message_detail > </ alibaba_ai_user_quick_bind_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 > |
错误码 | 错误描述 | 解决方案 |
---|