查询聊天室固定成员列表
开发中GET
/im/v2/chatrooms/{room_id}/actions/list_members请求参数
Path 参数
room_id
string
聊天室 ID。
示例值:
1602801663
Query 参数
member_roles
string
可选
需要查询的聊天室成员类型。0:普通用户;1:创建者;2:管理员
示例值:
1,2,0
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
msg
string
必需
data
object
必需
items
array [object {12}]
必需
示例
{
"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
}
]
}
}
最后修改时间: 8 个月前