- API在线调试指南
- IM账号管理
- 用户名片管理
- 好友管理
- 静音管理
- 黑名单管理
- 消息管理
- 会话功能
- 群组功能
- 聊天室功能
- 聊天室管理
- 聊天室成员
- 聊天室队列
- 广播消息管理
- 系统通知管理
- 发布订阅
- 翻译
查询聊天室固定成员列表
开发中
GET
/im/v2/chatrooms/{room_id}/actions/list_members
请求参数
Path 参数
room_id
string
聊天室 ID。
示例值:
1602801663
Query 参数
member_roles
string
可选
示例值:
1,2,0
Header 参数
AppKey
string
必需
默认值:
{{AppKey}}
X-custom-traceid
string
可选
默认值:
{% mock 'uuid' %}
Nonce
string
必需
默认值:
{{Nonce}}
CurTime
string
必需
默认值:
{{CurTime}}
CheckSum
string
必需
默认值:
{{CheckSum}}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://open.yunxinapi.com/im/v2/chatrooms/1602801663/actions/list_members?member_roles=1,2,0' \
--header 'AppKey;' \
--header 'X-custom-traceid: {% mock '\''uuid'\'' %}' \
--header 'Nonce;' \
--header 'CurTime;' \
--header 'CheckSum;'
返回响应
🟢200成功
application/json
Body
code
integer
必需
msg
string
必需
data
object
必需
items
array [object {17}]
必需
示例
{
"code": 200,
"msg": "success",
"data": {
"items": [
{
"extension": "string",
"level": 0,
"account_id": "qq",
"room_nick": "ygy test",
"room_avatar": "http://www.baidu.com",
"member_role": 2,
"is_online": false,
"blocked": false,
"chat_banned": false,
"temp_chat_banned": false,
"online_info_list": [],
"online_count": 0
},
{
"extension": "",
"level": 0,
"account_id": "yx1",
"room_nick": "",
"room_avatar": "",
"member_role": 1,
"is_online": false,
"blocked": false,
"chat_banned": false,
"temp_chat_banned": false,
"online_info_list": [],
"online_count": 0
},
{
"extension": "magna Lorem 01",
"level": 0,
"account_id": "yx4",
"room_nick": "黄涛003",
"room_avatar": "incididunt ad",
"member_role": 0,
"is_online": false,
"blocked": false,
"chat_banned": false,
"temp_chat_banned": false,
"online_info_list": [],
"online_count": 0
},
{
"extension": "string",
"level": 0,
"account_id": "yx3",
"room_nick": "ygy test",
"room_avatar": "http://www.baidu.com",
"member_role": 0,
"is_online": false,
"blocked": false,
"chat_banned": false,
"temp_chat_banned": false,
"online_info_list": [],
"online_count": 0
},
{
"extension": "string",
"level": 0,
"account_id": "yx5",
"room_nick": "ygy test",
"room_avatar": "http://www.baidu.com",
"member_role": 2,
"is_online": false,
"blocked": false,
"chat_banned": false,
"temp_chat_banned": false,
"online_info_list": [],
"online_count": 0
},
{
"extension": "string",
"level": 0,
"account_id": "yx8",
"room_nick": "ygy test",
"room_avatar": "http://www.baidu.com",
"member_role": 2,
"is_online": false,
"blocked": false,
"chat_banned": false,
"temp_chat_banned": false,
"online_info_list": [],
"online_count": 0
},
{
"extension": "12341234567889012345678890123456788901234567889012345678890123456788905678890",
"level": 0,
"account_id": "yx9",
"room_nick": "ygy test",
"room_avatar": "http://www.baidu.com",
"member_role": 2,
"is_online": false,
"blocked": false,
"chat_banned": false,
"temp_chat_banned": false,
"online_info_list": [],
"online_count": 0
},
{
"extension": "string",
"level": 0,
"account_id": "yx29",
"room_nick": "ygy test",
"room_avatar": "http://www.baidu.com",
"member_role": 0,
"is_online": false,
"blocked": false,
"chat_banned": false,
"temp_chat_banned": false,
"online_info_list": [],
"online_count": 0
}
]
}
}
🟢200成功
🟢200请求参数错误
🟢200服务器错误
修改于 2024-12-23 11:43:24