灵犀互娱-用户中台-通过三方id查询用户信息
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
query_user_basic_info_by_third_party_id_req_dto | QueryUserBasicInfoByThirdPartyIdReqDTO | 可选 | 请求参数 | ||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
message | String | 账号不存在 | 错误信息描述。只有succ=false时必传 |
result_code | String | UID_NOT_FOUND | 错误信息码。只有succ=false时必传 |
data | UserBasicInfoDTO | 响应内容 | |
|
|||
req_id | String | jdfisaj293jrkeqh895nfhq | 请求id |
succ | Boolean | true | 本次请求操作是否成功 |
1 2 3 4 5 6 7 8 9 10 11 12 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AlibabaAligamesUserInfoQueryuserbasicinfobythirdpartyidRequest req = new AlibabaAligamesUserInfoQueryuserbasicinfobythirdpartyidRequest(); AlibabaAligamesUserInfoQueryuserbasicinfobythirdpartyidRequest.QueryUserBasicInfoByThirdPartyIdReqDTO obj1 = new AlibabaAligamesUserInfoQueryuserbasicinfobythirdpartyidRequest.QueryUserBasicInfoByThirdPartyIdReqDTO(); obj1.setThirdPartyId( "demo_open_id_XMUX3tIiY10DAIiDbml" ); obj1.setThirdPartyType( "APPLE" ); obj1.setRequestId( "jdfisaj293jrkeqh895nfhq" ); obj1.setAppId( "jym-merchant" ); obj1.setBizId( "jiaoyimao" ); obj1.setTimestamp(1661320960000L); req.setQueryUserBasicInfoByThirdPartyIdReqDto(obj1); AlibabaAligamesUserInfoQueryuserbasicinfobythirdpartyidResponse rsp = client.execute(req); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | < alibaba_aligames_user_info_queryuserbasicinfobythirdpartyid_response > < message >账号不存在</ message > < result_code >UID_NOT_FOUND</ result_code > < data > < uid >1234567890</ uid > < gender >1</ gender > < nickname >UID1234567890</ nickname > < avatar >https://img.alicdn.com/imgextra/i4/O1CN01mAPcid1KebZWl44X2_!!6000000001189-2-tps-203-200.png</ avatar > < mobile >12345678901</ mobile > < state >1</ state > < register_time >2022-09-06 18:31:14</ register_time > < nickname_base64 >Yml1Yml15LiA5aeQ8J+RiPCfj7vwn5GB</ nickname_base64 > </ data > < req_id >jdfisaj293jrkeqh895nfhq</ req_id > < succ >true</ succ > </ alibaba_aligames_user_info_queryuserbasicinfobythirdpartyid_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 > |
错误码 | 错误描述 | 解决方案 |
---|