外部业务接入oauth后,通openid换取EA的id,进行账号打通
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
ea_id_exchange_req | EaIdExchangeReq | 必须 | ea数据 | ||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | ApiResult | result | 根据站点名称查询产品 |
|
1 2 3 4 5 6 7 8 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AlibabaIhomeCtomEaExchangeRequest req = new AlibabaIhomeCtomEaExchangeRequest(); AlibabaIhomeCtomEaExchangeRequest.EaIdExchangeReq obj1 = new AlibabaIhomeCtomEaExchangeRequest.EaIdExchangeReq(); obj1.setType( "类型" ); obj1.setAcctInfo( "token数据" ); req.setEaIdExchangeReq(obj1); AlibabaIhomeCtomEaExchangeResponse rsp = client.execute(req); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 7 8 9 10 11 | < alibaba_ihome_ctom_ea_exchange_response > < result > < data > < ent_id >123</ ent_id > < open_ea_id >123</ open_ea_id > </ data > < success >true</ success > < error_message >error</ error_message > < error_code >123</ error_code > </ result > </ alibaba_ihome_ctom_ea_exchange_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 > |
错误码 | 错误描述 | 解决方案 |
---|