接口描述
请求方式:
GET请求地址:
https://api.account.tencent.com/openapi/v3/contacts/groups/find_by_member调用该接口查询指定用户所属的用户组列表。
输入参数
请求头
名称 | 类型 | 必填 | 描述 |
Authorization | string | 是 | 值格式: Bearer {{access_token}} 支持鉴权类型: |
Content-Type | string | 是 | 固定值: application/json; charset=utf-8 |
Query 参数
名称 | 类型 | 必填 | 描述 |
union_id | string | 是 | 用户 ID 示例值:"13579************24" |
输出参数
参数名称 | 类型 | 描述 |
groups | array<object> | |
trace_id | string | 唯一请求 ID |
示例
输入示例
GET https://api.account.tencent.com/openapi/v3/contacts/groups/find_by_member?union_id=13579************24Authorization: Bearer {access_token}
输出示例
{"code": 0,"msg": "ok","trace_id": "4b5309c4802b3f4bba83b05e6188be02","data": {"groups": [{"group_id": "15039************94","name": "AI验证组2","description": "验证","alias_id": "ai2****89"}]}}
错误码
说明:
错误码 | 描述 |
203000 | 用户组不存在 |
202009 | 用户组 id 不合法 |
200001 | 用户不存在 |