URI | /v2/service/groups.json |
Method | GET |
参数说明 | |
结果(json) | "mine_service_group": { //我的服务分组 "key": { "id": "", //分组ID "name": "", //分组名称 "pId": "", //父分组ID "leafCount": "" //分组的任务数 } "ent_service_group": { //企业服务分组 "key": { "id": "", "name": "", "pId": "", "leafCount":"" } |
一个例子:
curl -s "https://api.jiankongbao.com/v2/service/groups.json?access_token=09d265e2dbe5dea925988b56762b312459668e88" 说明:access_token通过获取访问token得到。
返回结果:
{ "mine_service_group": { "29819": { "id": "29819", "name": "第一个分组-父", "pId": "0", "leafCount": "0" } }, "ent_service_group": { "1328": { "id": "1328", "name": "第一个企业分组-父", "pId": "0", "leafCount": 0 } } }