# 获取机器人开通关注群数量[废弃]
仅支持平台号,请使用【获取机器人所在的群数量】接口,支持所有类型机器人
请求方式:POST
请求地址:https://$basehost/gateway/qopen/GetRobotWatchGroupChatCountSync
body参数:
{
"robot_id_list": ["机器人id"]
}
字段 | 类型 | 必填 | 说明 |
---|---|---|---|
robot_id_list | array | 是 | 机器人id,注:不可传空,目前最多支持传入100个机器人编号 |
返回值:
{
"data": {
"care_list": [
{
"robot_id": "机器人id",
"care_group_count": 10
}
]
},
"errcode": 0,
"errmsg": "",
"hint": ""
}
返回说明
字段 | 类型 | 说明 |
---|---|---|
data | object | 返回数据 |
care_list | array | 返回数组 |
robot_id | string | 机器人id |
care_group_count | int | 关注群的数量 |
errcode | int | 状态码,0为正常,非0代表错误 |
errmsg | string | 错误信息 |
hint | string | 请求日志ID |
完整请求示例:
curl -X POST \
https://$basehost/gateway/qopen/GetRobotWatchGroupChatCount \
-H 'Content-Type: application/json; charset=UTF-8' \
-H 'Token: c2NdxDHKXIJ5j1zrhJeq2eJEHjh9xxx' \
-d '{
"robot_id_list": ["机器人id"]
}'