获取一级/二级类目
调用逻辑
▪ 查询一级类目时无需传入父类目 ID。
▪ 查询二级类目时需要传入父类目 ID。
▪ 目前类目层级最多只支持二层。
▪ 该接口调用的常见问题,请参见 商品对接问题。
调用权限
▪ 调用前,请确保您已在微盟云控制台申请了该 API。申请步骤请参见 申请能力。
▪ ACCESS_TOKEN 是调用 API 的授权令牌。获取方法请参见 获取 token(自有型)或 获取 token(工具型)。
协议 | 请求方式 | 请求地址 |
|---|---|---|
https | POST | https://dopen.weimob.com/apigw/weimob_shop/v2.0/goods/category/getList?accesstoken=ACCESS_TOKEN |
参数 | 是否必填 | 类型 | 示例 | 描述 |
|---|---|---|---|---|
parentCategoryId | 否 | number | 1000000 | 上级商品类目 ID。查询一级类目时无需传入父类目 ID,查询二级类目时需要传入父类目 ID。 |
basicInfo | 是 | object | {"vid":6000287446212} | 基础信息 |
vid | 是 | number | 6000287446212 |
已经直接将返回的json查询到,您可以直接使用我的json查看返回编号:
{
"code": {
"errcode": "0",
"errmsg": "处理成功",
"globalTicket": "3976-1706234138.050-saas-w1-548-18255696281",
"monitorTrackId": "85a9eddc-d0b6-4267-a23a-a71bbd46ba3b"
},
"data": {
"goodsCategoryInfoList": [
{
"mallCategoryCertificateMgrDTO": null,
"categoryType": null,
"categoryLevel": 1,
"categoryPropertyList": null,
"parentCategoryId": 0,
"categoryName": "食品",
"isLeaf": false,
"categoryId": 1
},
{
"mallCategoryCertificateMgrDTO": null,
"categoryType": null,
"categoryLevel": 1,
"categoryPropertyList": null,
"parentCategoryId": 0,
"categoryName": "美妆护肤",
"isLeaf": false,
"categoryId": 2
},
{
"mallCategoryCertificateMgrDTO": null,
"categoryType": 1,
"categoryLevel": 1,
"categoryPropertyList": null,
"parentCategoryId": 0,
"categoryName": "服饰",
"isLeaf": false,
"categoryId": 3
},
{
"mallCategoryCertificateMgrDTO": null,
"categoryType": 2,
"categoryLevel": 1,
"categoryPropertyList": null,
"parentCategoryId": 0,
"categoryName": "鞋类箱包",
"isLeaf": false,
"categoryId": 4
},
{
"mallCategoryCertificateMgrDTO": null,
"categoryType": 3,
"categoryLevel": 1,
"categoryPropertyList": null,
"parentCategoryId": 0,
"categoryName": "母婴",
"isLeaf": false,
"categoryId": 5
},
{
"mallCategoryCertificateMgrDTO": null,
"categoryType": null,
"categoryLevel": 1,
"categoryPropertyList": null,
"parentCategoryId": 0,
"categoryName": "居家日用",
"isLeaf": false,
"categoryId": 6
},
{
"mallCategoryCertificateMgrDTO": null,
"categoryType": null,
"categoryLevel": 1,
"categoryPropertyList": null,
"parentCategoryId": 0,
"categoryName": "珠宝配饰",
"isLeaf": false,
"categoryId": 7
},
{
"mallCategoryCertificateMgrDTO": null,
"categoryType": null,
"categoryLevel": 1,
"categoryPropertyList": null,
"parentCategoryId": 0,
"categoryName": "3C数码",
"isLeaf": false,
"categoryId": 8
},
{
"mallCategoryCertificateMgrDTO": null,
"categoryType": null,
"categoryLevel": 1,
"categoryPropertyList": null,
"parentCategoryId": 0,
"categoryName": "家用电器",
"isLeaf": false,
"categoryId": 9
},
{
"mallCategoryCertificateMgrDTO": null,
"categoryType": null,
"categoryLevel": 1,
"categoryPropertyList": null,
"parentCategoryId": 0,
"categoryName": "图书音像",
"isLeaf": false,
"categoryId": 10
},
{
"mallCategoryCertificateMgrDTO": null,
"categoryType": null,
"categoryLevel": 1,
"categoryPropertyList": null,
"parentCategoryId": 0,
"categoryName": "医疗保健",
"isLeaf": false,
"categoryId": 11
},
{
"mallCategoryCertificateMgrDTO": null,
"categoryType": null,
"categoryLevel": 1,
"categoryPropertyList": null,
"parentCategoryId": 0,
"categoryName": "古董收藏",
"isLeaf": false,
"categoryId": 12
},
{
"mallCategoryCertificateMgrDTO": null,
"categoryType": null,
"categoryLevel": 1,
"categoryPropertyList": null,
"parentCategoryId": 0,
"categoryName": "休闲娱乐",
"isLeaf": false,
"categoryId": 13
},
{
"mallCategoryCertificateMgrDTO": null,
"categoryType": null,
"categoryLevel": 1,
"categoryPropertyList": null,
"parentCategoryId": 0,
"categoryName": "餐饮美食",
"isLeaf": false,
"categoryId": 14
},
{
"mallCategoryCertificateMgrDTO": null,
"categoryType": null,
"categoryLevel": 1,
"categoryPropertyList": null,
"parentCategoryId": 0,
"categoryName": "丽人",
"isLeaf": false,
"categoryId": 15
},
{
"mallCategoryCertificateMgrDTO": null,
"categoryType": null,
"categoryLevel": 1,
"categoryPropertyList": null,
"parentCategoryId": 0,
"categoryName": "旅游酒店",
"isLeaf": false,
"categoryId": 16
},
{
"mallCategoryCertificateMgrDTO": null,
"categoryType": null,
"categoryLevel": 1,
"categoryPropertyList": null,
"parentCategoryId": 0,
"categoryName": "汽车/交通",
"isLeaf": false,
"categoryId": 17
},
{
"mallCategoryCertificateMgrDTO": null,
"categoryType": null,
"categoryLevel": 1,
"categoryPropertyList": null,
"parentCategoryId": 0,
"categoryName": "商务办公",
"isLeaf": false,
"categoryId": 18
},
{
"mallCategoryCertificateMgrDTO": null,
"categoryType": null,
"categoryLevel": 1,
"categoryPropertyList": null,
"parentCategoryId": 0,
"categoryName": "便民生活",
"isLeaf": false,
"categoryId": 19
},
{
"mallCategoryCertificateMgrDTO": null,
"categoryType": null,
"categoryLevel": 1,
"categoryPropertyList": null,
"parentCategoryId": 0,
"categoryName": "文化体育",
"isLeaf": false,
"categoryId": 20
},
{
"mallCategoryCertificateMgrDTO": null,
"categoryType": null,
"categoryLevel": 1,
"categoryPropertyList": null,
"parentCategoryId": 0,
"categoryName": "学习培训",
"isLeaf": false,
"categoryId": 21
},
{
"mallCategoryCertificateMgrDTO": null,
"categoryType": null,
"categoryLevel": 1,
"categoryPropertyList": null,
"parentCategoryId": 0,
"categoryName": "房地产",
"isLeaf": false,
"categoryId": 22
},
{
"mallCategoryCertificateMgrDTO": null,
"categoryType": null,
"categoryLevel": 1,
"categoryPropertyList": null,
"parentCategoryId": 0,
"categoryName": "金融理财",
"isLeaf": false,
"categoryId": 23
},
{
"mallCategoryCertificateMgrDTO": null,
"categoryType": null,
"categoryLevel": 1,
"categoryPropertyList": null,
"parentCategoryId": 0,
"categoryName": "网络游戏",
"isLeaf": false,
"categoryId": 24
},
{
"mallCategoryCertificateMgrDTO": null,
"categoryType": null,
"categoryLevel": 1,
"categoryPropertyList": null,
"parentCategoryId": 0,
"categoryName": "话费通信",
"isLeaf": false,
"categoryId": 25
},
{
"mallCategoryCertificateMgrDTO": null,
"categoryType": null,
"categoryLevel": 1,
"categoryPropertyList": null,
"parentCategoryId": 0,
"categoryName": "工农用品",
"isLeaf": false,
"categoryId": 26
},
{
"mallCategoryCertificateMgrDTO": null,
"categoryType": null,
"categoryLevel": 1,
"categoryPropertyList": null,
"parentCategoryId": 0,
"categoryName": "其他",
"isLeaf": false,
"categoryId": 27
}
]
}
}我需要的是一级大类“服饰“,编号是:3,你需要其他的可以自己在JSON中查阅。
日志查看:git log版本切换:方式1:git reset --hard HEAD^ 倒退一个版本git reset --hard HEAD^^ 倒退两个版本方式2:(版本号的形式,建议版本号码补充完...
public static string GetMD5(string str) { //创建MD5对象 MD5 md5 = MD5.C...
方案1.IE浏览器"无法显示此页"的解决办法(1).按下Win+R键打开运行,输入netsh winsock reset,回车;(2).重启即可. 方案2.IE浏览器"无法显示此页"的解决办法 (1).设置-连接-局域网设置-自动检测设置开...
首先在阿里云申请免费的证书,选择自动生成证书。然后就是nginx虚拟主机配置文件的修改。以下是我的配置文件(因为公司开发小程序,没有办法只能使用https)。您只需要关注带有ssl的配置选项,我增加了一个监听80和443的端口,同时增加了http跳转https的配置server &nbs...
vsftp常用操作命令:1.启动vsftp: service vsftpd start 2.重启vsftp: service vsftpd restart3.修改用户密码:passwd lao8org4.创建用户:useradd -d /data/wwwroot/blog -s /sbin...
navicat for mysql 11.1.13 企业破解版.绿色软件免安装,请直接打开安装说明.一定要看说明.下载地址: http://pan.baidu.com/s/1dFINxNN下载链接失效,直接点击上方QQ呼叫...