xiaodian.class.getItemClassifyList

  • 免费
  • 需要授权
  • 结果不加密
获取店铺商品分类列表

公共参数

名称 类型 必选 描述
app_key Long 接入时申请的app_key
method String 接口名称
access_token String Oauth2.0授权获得的access_token
sign String 对 API 调用参数(除sign外)进行 md5 加密获得。参数的顺序为字母表的顺序
timestamp Long 时间戳,使用Unix时间戳格式
format String 响应格式。默认为json格式,固定
sign_method String 参数的加密方法选择,当前只支持Md5
version String API协议版本,固定值为:1.0

输入参数

名称 类型 必选 描述 示例值
shopId
Number 店铺Id

返回参数

名称 类型 描述 默认值
ApiResponse
Object {
"result": {
"data": {
"category": [
{
"id": 182775,
"name": "1",
"sort": 1,
"subList": [
{
"id": 182776,
"name": "1.1",
"sort": 1,
"time": "2016-10-21 13:26:24"
},
{
"id": 182777,
"name": "1.2",
"sort": 2,
"time": "2016-10-21 13:26:36"
},
{
"id": 182920,
"name": "1212",
"sort": 3,
"time": "2017-02-22 16:42:57"
}
],
"time": "2016-10-21 13:26:12"
},
{
"id": 182778,
"name": "2",
"sort": 2,
"subList": [
{
"id": 182779,
"name": "2.1",
"sort": 1,
"time": "2016-10-21 13:27:48"
},
{
"id": 182780,
"name": "2.2",
"sort": 2,
"time": "2016-10-21 13:27:56"
},
{
"id": 182781,
"name": "2.3",
"sort": 3,
"time": "2016-10-21 13:28:02"
},
{
"id": 182782,
"name": "2.4",
"sort": 4,
"time": "2016-10-21 13:28:08"
},
{
"id": 182783,
"name": "2.5",
"sort": 5,
"time": "2016-10-21 13:28:14"
},
{
"id": 182784,
"name": "2.6",
"sort": 6,
"time": "2016-10-21 13:28:19"
},
{
"id": 182785,
"name": "2.7",
"sort": 7,
"time": "2016-10-21 13:28:25"
},
{
"id": 182786,
"name": "2.8",
"sort": 8,
"time": "2016-10-21 13:28:32"
},
{
"id": 182787,
"name": "2.9",
"sort": 9,
"time": "2016-10-21 13:28:38"
},
{
"id": 182788,
"name": "3.0",
"sort": 10,
"time": "2016-10-21 13:28:44"
}
],
"time": "2016-10-21 13:27:33"
},
{
"id": 182789,
"name": "3",
"sort": 3,
"subList": [
{
"id": 182800,
"name": "3.1",
"sort": 1,
"time": "2016-10-21 14:40:45"
}
],
"time": "2016-10-21 14:23:26"
},
{
"id": 182790,
"name": "4",
"sort": 4,
"subList": [],
"time": "2016-10-21 14:23:31"
},
{
"id": 182791,
"name": "5",
"sort": 5,
"subList": [],
"time": "2016-10-21 14:23:37"
},
{
"id": 182792,
"name": "6",
"sort": 6,
"subList": [],
"time": "2016-10-21 14:23:49"
},
{
"id": 182793,
"name": "7",
"sort": 7,
"subList": [],
"time": "2016-10-21 14:23:55"
},
{
"id": 182794,
"name": "8",
"sort": 8,
"subList": [],
"time": "2016-10-21 14:24:04"
},
{
"id": 182795,
"name": "9",
"sort": 9,
"subList": [],
"time": "2016-10-21 14:24:10"
},
{
"id": 182796,
"name": "10",
"sort": 10,
"subList": [],
"time": "2016-10-21 14:24:20"
},
{
"id": 182797,
"name": "11",
"sort": 11,
"subList": [],
"time": "2016-10-21 14:24:27"
},
{
"id": 182798,
"name": "12",
"sort": 12,
"subList": [],
"time": "2016-10-21 14:24:33"
},
{
"id": 182799,
"name": "13",
"sort": 13,
"subList": [],
"time": "2016-10-21 14:24:41"
}
]
}
},
"status": {
"code": "0000000",
"msg": "成功!"
}
}

请求参数示例

1).
{ "shopId": "" }

返回示例

1).
{ "result": { "data": { "category": [ { "id": 182775, "name": "1", "sort": 1, "subList": [ { "id": 182776, "name": "1.1", "sort": 1, "time": "2016-10-21 13:26:24" }, { "id": 182777, "name": "1.2", "sort": 2, "time": "2016-10-21 13:26:36" }, { "id": 182920, "name": "1212", "sort": 3, "time": "2017-02-22 16:42:57" } ], "time": "2016-10-21 13:26:12" }, { "id": 182778, "name": "2", "sort": 2, "subList": [ { "id": 182779, "name": "2.1", "sort": 1, "time": "2016-10-21 13:27:48" }, { "id": 182780, "name": "2.2", "sort": 2, "time": "2016-10-21 13:27:56" }, { "id": 182781, "name": "2.3", "sort": 3, "time": "2016-10-21 13:28:02" }, { "id": 182782, "name": "2.4", "sort": 4, "time": "2016-10-21 13:28:08" }, { "id": 182783, "name": "2.5", "sort": 5, "time": "2016-10-21 13:28:14" }, { "id": 182784, "name": "2.6", "sort": 6, "time": "2016-10-21 13:28:19" }, { "id": 182785, "name": "2.7", "sort": 7, "time": "2016-10-21 13:28:25" }, { "id": 182786, "name": "2.8", "sort": 8, "time": "2016-10-21 13:28:32" }, { "id": 182787, "name": "2.9", "sort": 9, "time": "2016-10-21 13:28:38" }, { "id": 182788, "name": "3.0", "sort": 10, "time": "2016-10-21 13:28:44" } ], "time": "2016-10-21 13:27:33" }, { "id": 182789, "name": "3", "sort": 3, "subList": [ { "id": 182800, "name": "3.1", "sort": 1, "time": "2016-10-21 14:40:45" } ], "time": "2016-10-21 14:23:26" }, { "id": 182790, "name": "4", "sort": 4, "subList": [], "time": "2016-10-21 14:23:31" }, { "id": 182791, "name": "5", "sort": 5, "subList": [], "time": "2016-10-21 14:23:37" }, { "id": 182792, "name": "6", "sort": 6, "subList": [], "time": "2016-10-21 14:23:49" }, { "id": 182793, "name": "7", "sort": 7, "subList": [], "time": "2016-10-21 14:23:55" }, { "id": 182794, "name": "8", "sort": 8, "subList": [], "time": "2016-10-21 14:24:04" }, { "id": 182795, "name": "9", "sort": 9, "subList": [], "time": "2016-10-21 14:24:10" }, { "id": 182796, "name": "10", "sort": 10, "subList": [], "time": "2016-10-21 14:24:20" }, { "id": 182797, "name": "11", "sort": 11, "subList": [], "time": "2016-10-21 14:24:27" }, { "id": 182798, "name": "12", "sort": 12, "subList": [], "time": "2016-10-21 14:24:33" }, { "id": 182799, "name": "13", "sort": 13, "subList": [], "time": "2016-10-21 14:24:41" } ] } }, "status": { "code": "0000000", "msg": "成功!" } }

异常示例

1).
{"result":{},"status":{"code":"124004","msg":"系统错误"}}