最近更新时间:2023.05.15 14:02:18
首次发布时间:2022.03.29 22:10:12
以主持人的身份在直播间内发表评论。
以下请求参数列表仅列出了该接口的部分公共参数,完整公共参数列表见公共请求参数。
参数 | 类型 | 是否必选 | 描述 |
---|---|---|---|
Action | String | 是 | 接口名称 |
Version | String | 是 | 接口版本。直播当前 API 的版本为 2020-06-01 |
参数 | 类型 | 是否必选 | 描述 |
---|---|---|---|
ActivityId | Int64 | 是 | 直播间 ID |
Comment | String | 是 | 主持人的评论内容 |
参数 | 类型 | 描述 |
---|---|---|
status | Bool | 评论发送状态。支持以下取值。
|
POST http://livesaas.volcengineapi.com/?Action=PresenterChatAPI&Version=2020-06-01 { "ActivityId" :732412312, "Comment" : "大家好" }
{ "ResponseMetadata":{ "RequestId":"201806041104200100100232280022D30", "Action":"PresenterChatAPI", "Version":"2020-06-01", "Service":"livesaas", "Region":"cn-north-1", "SystemTime":1656067132 }, "Result":{ "status":true } }
{ "ResponseMetadata":{ "RequestId":"201806041104200100100232280022D30", "Action":"PresenterChatAPI", "Version":"2020-06-01", "Service":"livesaas", "Region":"cn-north-1", "SystemTime":1656067132, "Error":{ "Code":"200000", "Message":"参数异常" } } }
访问公共错误码获取详细信息。