taobao.user.identity.get (获取用户身份信息)

获取用户身份信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述

响应参数

名称 类型 示例值 描述
user User 用户
  • └ avatar
  • String
  • http://assets.taobaocdn.com/app/sns/img/default/avatar-120.png
  • 用户头像地址
  • └ has_shop
  • Boolean
  • true
  • 用户作为卖家是否开过店
  • └ nick
  • String
  • hz0799
  • 用户昵称
  • └ type
  • String
  • B
  • 用户类型。可选值:B(B商家),C(C商家)
  • └ user_id
  • Number
  • 10001
  • 用户数字ID
  • └ open_uid
  • String
  • open uid

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
UserIdentityGetRequest req = new UserIdentityGetRequest();
UserIdentityGetResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<user_identity_get_response>
    <user>
        <avatar>http://assets.taobaocdn.com/app/sns/img/default/avatar-120.png</avatar>
        <has_shop>true</has_shop>
        <nick>hz0799</nick>
        <type>B</type>
        <user_id>10001</user_id>
        <open_uid></open_uid>
    </user>
</user_identity_get_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部