API接口,查询卖家用户信息(只能查询有店铺的用户) 只能卖家类应用调用。

公共参数

请求地址:https://console.open.onebound.cn/console/index.php?i=Anzexi

环境

HTTP地址

HTTPS地址

正式环境

http://gw.api.taobao.com/router/rest

https://eco.taobao.com/router/rest

公共请求参数:

名称

类型

必须

描述

method

String

API接口名称,例如:taobao.user.seller.get

app_key

String

TOP分配给应用的AppKey,例如:12345678

session

String

用户登录授权成功后,TOP颁发给应用的授权信息,详细介绍请点击这里。当此API的标签上注明:“需要授权”,则此参数必传;“不需要授权”,则此参数不需要传;“可选授权”,则此参数为可选

timestamp

String

时间戳,格式为yyyy-MM-dd HH:mm:ss,时区为GMT+8,例如:2015-01-01 12:00:00。淘宝API服务端允许客户端请求最大时间误差为10分钟

v

String

API协议版本,可选值:2.0

sign_method

String

签名的摘要算法,可选值为:hmac,md5,hmac-sha256。

sign

String

API输入参数签名结果,签名算法介绍请点击这里

format

String

响应格式。默认为xml格式,可选值:xml,json。

simplify

Boolean

是否采用精简JSON返回格式,仅当format=json时有效,默认值为:false

公共响应参数:

名称

类型

描述

request_id

String

平台颁发的每次请求访问的唯一标识

error_response

String

请求访问失败时返回的根节点

code

String

请求失败返回的错误码

msg

String

请求失败返回的错误信息

sub_code

String

请求失败返回的子错误码

sub_msg

String

请求失败返回的子错误信息

***_response

String

请求成功返回的根节点,'***' 为API名称的下划线模式

请求参数

名称

类型

必须

示例值

描述

fields

String[]

true

nick,sex

需要返回的字段列表,可选值为返回示例值中的可以看到的字段

响应参数

 

 

请求示例

JAVA

PHP

.NET

CURL

Python

NodeJS

C/C++

Python3

GO

PHP7

JAVA8

.NET6

TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
UserSellerGetRequest req = new UserSellerGetRequest();
req.setFields("nick,sex");
UserSellerGetResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

XML

JSON

<user_seller_get_response>
    <user>
        <user_id>10001</user_id>
        <nick>hz0799</nick>
        <sex>m</sex>
        <seller_credit>
            <level>1</level>
            <score>1</score>
            <total_num>1</total_num>
            <good_num>1</good_num>
        </seller_credit>
        <type>B</type>
        <has_more_pic>true</has_more_pic>
        <item_img_num>5</item_img_num>
        <item_img_size>1024</item_img_size>
        <prop_img_num>5</prop_img_num>
        <prop_img_size>1024</prop_img_size>
        <auto_repost>unlimited</auto_repost>
        <promoted_type>authentication</promoted_type>
        <status>normal</status>
        <alipay_bind>bind</alipay_bind>
        <consumer_protection>true</consumer_protection>
        <vip_info>v1</vip_info>
        <magazine_subscribe>true</magazine_subscribe>
        <vertical_market>3C,shoes</vertical_market>
        <avatar>http://assets.taobaocdn.com/app/sns/img/default/avatar-120.png</avatar>
        <online_gaming>true</online_gaming>
        <liangpin>true</liangpin>
        <sign_food_seller_promise>true</sign_food_seller_promise>
        <has_shop>true</has_shop>
        <is_lightning_consignment>true</is_lightning_consignment>
        <has_sub_stock>true</has_sub_stock>
        <is_golden_seller>true</is_golden_seller>
        <is_tjb_seller>false</is_tjb_seller>
    </user>
</user_seller_get_response>
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值