获取前台展示的店铺内卖家自定义商品类目
获取当前卖家店铺在淘宝前端被展示的浏览导航类目(面向买家)
一、请求参数
请求URL:
POST https://kf.fw199.com/gateway/taobao/sellercats/list/get
基本参数
| 参数名 | 类型 | 说明 | 示例 |
|---|---|---|---|
| appid | String | 合作伙伴AppId | uwkahf@jfs92 |
| timestamp | String | 当前时间戳 | |
| tb_seller_nick | String | 淘宝卖家店铺登录账号,非店铺名称 | kingdo |
| sign | String | 接口签名 | 如何计算生成见示例代码 |
二、请求示例代码
Java
@Test public void TaoBaoSellerCatsListGet() throws Exception { Map<String, String> data = new HashMap<String, String>(); data.put("appid", Config.AppId); Long timestamp = System.currentTimeMillis() / 1000; data.put("timestamp", timestamp.toString()); data.put("tb_seller_nick", Config.TBSellerNick); data.put("sign", Utils.Sign(data,Config.AppSecret)); doHttpRequest(Config.TaoBaoSellerCatsListGetUrl ,data);
}三、返回结果
{ "code": 0, "message": "ok", "data": [ { "cid": 1751362841, "parent_cid": 0, "name": "aa", "pic_url": "", "sort_order": 1, "type": "manual_type" }, { "cid": 1756131335, "parent_cid": 1751362841, "name": "学习教程", "pic_url": "", "sort_order": 0, "type": "manual_type" }, { "cid": 1756137247, "parent_cid": 1751362841, "name": "测试类目-子6111", "pic_url": "", "sort_order": 0, "type": "manual_type" }, { "cid": 410284344, "parent_cid": 0, "name": "教程系列", "pic_url": "", "sort_order": 2, "type": "manual_type" } ], "trace_id": ""}说明: code为0表示成功, 如果失败,msg会包含失败原因。 返回的字段说明
| 名称 | 类型 | 示例 | 描述 |
|---|---|---|---|
| cid | Number | 12345 | 卖家自定义类目编号 |
| parent_cid | Number | 12 | 父类目编号,值等于0:表示此类目为店铺下的一级类目,值不等于0:表示此类目有父类目 |
| name | String | 自定义类型名称 | 卖家自定义类目名称 |
| pic_url | String | xva1sdfxxx.jpg | 链接图片地址 |
| sort_order | Number | 1 | 该类目在页面上的排序位置 |
| type | String | manual_type | 店铺类目类型:可选值:manual_type:手动分类,new_type:新品上价, tree_type:二三级类目树 ,property_type:属性叶子类目树, brand_type:品牌推广 |