你可以使用此接口批量查询全员禁言下白名单成员。

接口行为

你可以调用BatchGetWhitelistParticipant接口,指定你所属的AppId、会话 ID、 查询起始位置和查询条数批量查询全员禁言下白名单成员。

目前仅直播群支持此接口

请求方式

使用 POST 方式发起请求。

请求参数
Query
参数名类型必填示例值描述
ActionString是BatchGetWhitelistParticipant接口名称,本接口取值:BatchGetWhitelistParticipant
VersionString是2020-12-01接口版本,本接口取值:2020-12-01
Body
参数名类型必填示例值描述
AppIdInt是000000应用的唯一标志
ConversationShortIdInt是000001会话 ID
CursorInt是0查询起始位置
LimitInt是20每批查询条数。最大值为 20。
请求示例代码
Query
https://rtc.volcengineapi.com?Action=BatchGetWhitelistParticipant&Version=2020-12-01
Postscript
Body
{
    "AppId":000000,
    "ConversationShortId":000001,
    "Cursor":0,
    "Limit":20
}
Json
返回调用结果
返回参数说明

返回结果参看 BaseResponse。

其中 Result 的结构如下:

参数名类型描述
ParticipantsArray of WhitelistParticipant白名单成员信息
HasMorebool是否还有更多数据
NextCursorInt下一批数据起始位置。-1表示无更多数据。

WhitelistParticipant

参数名类型描述
ParticipantUserIdInt白名单成员 UserId
CreateTimeInt用户加入白名单时间,单位为秒
OperatorInt执行加入白名单操作操作人 UserId
NickNameInt白名单成员昵称
Extmap-key(string)-value(string)白名单成员扩展字段
AvatarUrlString白名单成员头像
正常返回示例
{
    "ResponseMetadata": {
        "RequestId": "Your_RequestId",
        "Action": "BatchGetWhitelistParticipant",
        "Version": "2020-12-01",
        "Service": "rtc",
        "Region": "cn-north-1"
    },
    "Result": {
        "NextCursor": -1,
        "HasMore": false,
         "Participants": [
            {
                "ParticipantUserId": 10002,
                "CreateTime": 1687213873,
                "Operator": 10003,
                "NickName": "Your_NickName",
                "Ext": {
                    "key":"value"
                },
                "AvatarURL": "https://xxxx.com"
            }
        ]
    }
}
json