You need to enable JavaScript to run this app.
导航
ListRobotComments - 获取机器人评论列表
最近更新时间:2025.03.03 14:02:24首次发布时间:2024.08.21 21:25:11
我的收藏
有用
有用
无用
无用

调用 ListRobotComments 接口,获取指定直播间内添加的机器人评论列表。

注意事项

请求频率:单用户请求频率限制为 10 次/秒

请求说明

  • 请求方式:GET
  • 请求地址:https://livesaas.volcengineapi.com/?Action=ListRobotComments&Version=2023-08-01

请求参数

下表仅列出该接口特有的请求参数和部分公共参数。更多信息详见公共参数

Query

参数类型是否必选示例值描述
ActionStringListRobotComments接口名称。当前 API 的名称为 ListRobotComments
VersionString2023-08-01接口版本。当前 API 的版本为 2023-08-01
ActivityIdLong1770****81234直播间 ID。您可通过调用 ListActivityAPI 接口获取 ID。
CommentContentStringHi机器人评论内容。长度为 1 到 200 个字符。支持模糊搜索,英文大小写不敏感。例如,当参数值为 Hi 时,返回hiHI 大家好 等内容的机器人评论。

PageNumber

Integer

1

分页查询页码。默认值为 1

说明

最多支持返回 200 条查询结果,即 PageNumber×PageSize≤ 200。

PageSize

Integer

10

分页查询数量。默认值为 10

说明

最多支持返回 200 条查询结果,即 PageNumber×PageSize≤ 200。

RobotCommentRepositoryId

Long

1770****81233

机器人评论库 ID。您可通过调用 AddActivityRobotCommentRepository 接口获取 ID。
默认值为 0,即默认评论库。

返回参数

参数类型示例值描述
PageNumberInteger1分页查询页码。
PageSizeInteger10分页查询数量。
TotalCountInteger1查询结果总数。
RobotCommentsArray of RobotComments-机器人评论列表。

RobotComments

参数类型示例值描述
IDLong31**175机器人评论 ID。
CommentContentStringHi机器人评论内容。

请求示例

GET https://livesaas.volcengineapi.com/?Action=ListRobotComments&Version=2023-08-01&ActivityId=1770****81234&CommentContent=Hi&PageNumber=1&PageSize=10&RobotCommentRepositoryId=1770****81233

返回示例

{
    "ResponseMetadata": {
        "RequestId": "20230604110420****100232280022D31",
        "Action": "ListRobotComments",
        "Version": "2023-08-01",
        "Service": "livesaas",
        "Region": "cn-north-1",
        "SystemTime": 1697446406
    },
    "Result": {
        "PageNumber": 1,
        "PageSize": 10,
        "TotalCount": 1,
        "RobotComments": [
            {
                "ID": 31**175,
                "CommentContent": "Hi"
            }
        ]
    }
}

错误码

访问公共错误码错误码获取详细信息。