产品分类列表
请求URL:
https://openapi.weixin12315.com/api/sign/md.shop.producttype/v1/list
请求方式:
POST
请求示例:
IAuth auth = new Sign("app_id", "app_secret");
IClient client = new SignClient(auth);
IDictionary<string, object> parameters = new Dictionary<string, object>();
string apiurl="https://openapi.weixin12315.com";
var result = client.Call(apiurl,"md.shop.producttype.list", "v1", "POST", parameters);返回示例
{
"return_code": 0,
"return_msg": "success",
"return_data": [
{
"typeid": 687,
"parentid": 0,
"typename": "产品分类测试",
"sequence": 9999,
"imageurl": "",
"productcount": "10",
"children": [
{
"typeid": 693,
"parentid": 687,
"typename": "54",
"sequence": 32,
"imageurl": "",
"productcount": "3"
}
]
}
]
}返回参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| return_code | int | 错误编码 |
| return_msg | string | 错误描述 |
| retrun_data | json[] | 返回数据,详细见“retrun_data 参数说明” |
retrun_data参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| typeid | Int | 类别ID |
| parentid | Int | 父类ID,顶级分类的父类别默认为:0 |
| typename | string | 分类名称 |
| sequence | Int | 排序 |
| imageurl | string | 图标地址 |
| productcount | Int | 商品数量 |