调用 GetActivityRobotCommentConfig
接口,获取指定直播间内指定机器人评论库的配置,包括是否开启机器人评论库以及机器人评论的发送规则。
下表仅列出该接口特有的请求参数和部分公共参数。更多信息详见公共参数。
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | GetActivityRobotCommentConfig | 接口名称。当前 API 的名称为 GetActivityRobotCommentConfig 。 |
Version | String | 是 | 2023-08-01 | 接口版本。当前 API 的版本为 2023-08-01 。 |
ActivityId | Long | 是 |
| 直播间 ID。您可通过调用 ListActivityAPI 接口获取 ID。 说明 使用子账号调用接口时,确保该直播间对子账号可见。有关如何配置子账号的可见范围,详见子账号管理。 |
RobotCommentRepositoryId | Long | 否 |
| 机器人评论库 ID。您可通过调用 AddActivityRobotCommentRepository 接口获取 ID。 |
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
RobotCommentConfig | Object of RobotCommentConfig | - | 机器人评论库配置。 |
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
RobotCommentRepositoryId | Long | 1770****81233 | 机器人评论库 ID。 |
RobotCommentRepositoryName | String | 商品评论库 | 机器人评论库的名称。 |
IsRobotEnable | Integer |
| 是否开启机器人评论库。取值如下:
|
RobotSendUnit | Long |
| 每当直播间内有 说明 直播间内每分钟最多支持自动发送 60 条机器人评论。 |
RobotSendNum | Long |
| 每当直播间内有 说明 直播间内每分钟最多支持自动发送 60 条机器人评论。 |
GET https://livesaas.volcengineapi.com/?Action=GetActivityRobotCommentConfig&Version=2023-08-01&ActivityId=1770****81234&RobotCommentRepositoryId=1770****81233
{ "ResponseMetadata": { "RequestId": "20230604110420****100232280022D31", "Action": "GetActivityRobotCommentConfig", "Version": "2023-08-01", "Service": "livesaas", "Region": "cn-north-1", "SystemTime": 1697446406 }, "Result": { "RobotCommentConfig": { "IsRobotEnable": 1, "RobotSendUnit": 30, "RobotSendNum": 5, "RobotCommentRepositoryId": 1770****81233, "RobotCommentRepositoryName": "商品评论库" } } }