最近更新时间:2022.09.29 17:29:32
首次发布时间:2022.07.29 09:31:39
通过该接口实现自定义系统消息的发送。
以下请求参数列表仅列出了该接口的部分公共参数,完整公共参数列表见公共请求参数。
参数 | 类型 | 是否必选 | 描述 |
---|---|---|---|
Action | String | 是 | 接口名称 |
Version | String | 是 | 接口版本。直播当前 API 的版本为 2020-06-01 |
参数 | 类型 | 是否必选 | 描述 |
---|---|---|---|
ActivityId | Int64 | 是 | 直播间 ID。您可通过ListActivityAPI 接口查询 ID |
Content | String | 是 | 待发送的自定义系统消息,长度不大于 120 个字符 |
参数 | 类型 | 描述 |
---|---|---|
Status | Boolean | 自定义系统消息是否发送成功。
|
Post http://livesaas.volcengineapi.com/?Action=SendCustomSystemMessageAPI&Version=2020-06-01 { "ActivityId": 123123, "Content": "***下单成功" }
{ "ResponseMetadata": { "RequestId": "2022062820372601021***", "Action": "SendCustomSystemMessageAPI", "Version": "2020-06-01", "Service": "livesaas", "Region": "cn-north-1", "SystemTime": 1656419846 }, "Result": { "Status": true } }
{ "ResponseMetadata":{ "RequestId":"201806041104200100***", "Action":"SendCustomSystemMessageAPI", "Version":"2020-06-01", "Service":"livesaas", "Region":"cn-north-1", "SystemTime":1656067132, "Error":{ "Code":"200000", "Message":"参数异常" } } }
访问公共错误码获取详细信息。