请求方式: POST(HTTPS)
请求地址: https://qyapi.weixin.qq.com/cgi-bin/report/patrol/category_statistic?access_token=ACCESS_TOKEN
请求包体:
{
"category_id": "category_id"
}
参数说明:
参数 | 必须 | 说明 |
---|---|---|
access_token | 是 | 调用接口凭证。“获取access_token” |
category_id | 否 | 分类ID,不传此字段,能拉取到所有一级分类的数据,然后传一级分类的category_id能拉取到该一级分类下的所有二级分类的数据 |
权限说明:
返回结果:
{
"errcode": 0,
"errmsg": "ok",
"dashboard_list":[
{
"category_id": "category_id",
"category_name": "category name",
"category_level": 1,
"total_case": 100,
"total_solved": 100,
"category_type": 1
}
]
}
参数说明:
参数 | 说明 |
---|---|
errcode | 返回码 |
errmsg | 对返回码的文本描述内容 |
dashboard_list.category_id | 分类ID |
dashboard_list.category_name | 分类名称 |
dashboard_list.category_level | 分类等级,1、一级分组;2、二级分类 |
dashboard_list.total_case | 累计上报 |
dashboard_list.total_solved | 累计办结 |
dashboard_list.category_type | 分类类型,0:其他,1:有效分类 |