导读:taobao.opensecurity.uid.get( 淘宝open security uid 获取接口 )根据明文 taobao user id 换取 ap
taobao.opensecurity.uid.get( 淘宝open security uid 获取接口 )
根据明文 taobao user id 换取 app的 open_uid
公共参数
请求地址:
公共请求参数:
公共响应参数:
请求参数
响应参数
请求示例
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
OpensecurityUidGetRequest req = new OpensecurityUidGetRequest();
req.setTbUserId(123456L);
OpensecurityUidGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
响应示例
<opensecurity_uid_get_response>
<open_uid>AAHrb-fwAAgOrLpFIt9ATdjc</open_uid>
</opensecurity_uid_get_response>
异常示例
<error_response>
<code>50</code>
<msg>Remote service error</msg>
<sub_code>isv.invalid-parameter</sub_code>
<sub_msg>非法参数</sub_msg>
</error_response>