直播严选商品列表查询。本接口需要使用机构授权发起调用,发起调用前请联系淘宝直播严选官方获取授权许可。
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
page_no | Number | 可选 | 1 | 页码 | |
page_size | Number | 可选 | 1 | 每页条数,最大不可超过10 | |
open_anchor_id | String | 必须 | 123456 | 主播openID | |
item_id | Number | 可选 | 123456 | 要查询商品id |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
total_results | Number | 998 | 数据总数 |
data | ItemList [] | 响应结果 | |
|
1 2 3 4 5 6 7 8 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); YanxuanItemsGetRequest req = new YanxuanItemsGetRequest(); req.setPageNo(1L); req.setPageSize(1L); req.setOpenAnchorId( "123456" ); req.setItemId(123456L); YanxuanItemsGetResponse 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 | < yanxuan_items_get_response > < total_results >998</ total_results > < data > < item_list > < query_time >2022-12-10 00:00:00</ query_time > < item_id >123456</ item_id > < status >0-下架 1-正常 -1-删除</ status > < picture >www.xxxx.com/pic</ picture > < title >保时捷</ title > < live_price >9.8</ live_price > < bc_type >B</ bc_type > < shop_name >xx官方旗舰店</ shop_name > < brand >某知名品牌</ brand > < item_tcp_link >xxx</ item_tcp_link > < ratio >100</ ratio > < ratio_start_time >2022-12-10 12:00:00</ ratio_start_time > < ratio_end_time >2022-12-20 10:00:00</ ratio_end_time > < skus > < sku > < price >5.00</ price > < properties >1243:1215;5626:5125</ properties > < properties_name >20000:3275069:品牌:盈讯;1753146:3485013:型号:F908;-1234:-5678:自定义属性1:属性值1</ properties_name > < quantity >300</ quantity > < sku_id >32343400</ sku_id > </ sku > </ skus > < categories > < item_category > < cid >123</ cid > < name >美容护肤/美体/精油</ name > < is_parent >true</ is_parent > < parent_cid >0</ parent_cid > </ item_category > </ categories > </ item_list > </ data > </ yanxuan_items_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 > |
错误码 | 错误描述 | 解决方案 |
---|