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