查询卖家用户信息(只能查询有店铺的用户) 只能卖家类应用调用。
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
fields | String [] | 必须 | nick,sex |
|
需要返回的字段列表,可选值为返回示例值中的可以看到的字段 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
user | User | 用户 | |
|
1 2 3 4 5 | 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()); |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | < 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 > < 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 > < displaynick >displayNIck001</ displaynick > < open_uid >adflajfaf</ open_uid > </ user > </ user_seller_get_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 > |
错误码 | 错误描述 | 解决方案 |
---|---|---|
isv.shop-not-exist:invalid-shop | 没有可访问的店铺 | 该接口是商家使用接口,非商家店铺不能查询、访问。 |