获取群标签列表
获取群标签列表
Section titled “获取群标签列表”https://chat-go.jwzhd.com/open-apis/v1/group/tag/list?token=xxxxxxxxxx
POST
curl --location --request POST 'https://chat-go.jwzhd.com/open-apis/v1/group/tag/list?token=xxxxxxxxxx' \--header 'Content-Type: application/json' \--data-raw '{ "groupId": "123456"}'Content-Type: "application/json; charset=utf-8"| 字段 | 类型 | 是否必填 | 说明 |
|---|---|---|---|
| groupId | string | 是 | 群组ID |
机器人需要在该群聊中
| 字段 | 类型 | 说明 |
|---|---|---|
| code | int | 响应代码 |
| msg | string | 响应信息,包括异常信息 |
| data | Object | 返回数据 |
| data.list | Array | 标签列表 |
| data.list[].tag | string | 标签名称 |
| data.list[].desc | string | 标签描述 |
| data.list[].color | string | 标签颜色 |
| data.list[].sort | int64 | 排序值 |
{ "code": 1, "msg": "success", "data": { "list": [ { "tag": "VIP用户", "desc": "VIP会员用户标签", "color": "#FF5733", "sort": 1 }, { "tag": "活跃用户", "desc": "活跃用户标签", "color": "#33C4FF", "sort": 2 } ] }}| 错误码 | 说明 |
|---|---|
| 1002 | 参数缺失或有误 |
| 1003 | 未授权(非法token) |
| -1 | 业务错误(如机器人不在群中等) |