最近更新时间:2023.01.12 10:20:08
首次发布时间:2022.03.29 22:10:12
获取直播间评论。
以下请求参数列表仅列出了该接口的部分公共参数,完整公共参数列表见公共请求参数。
参数 | 类型 | 是否必选 | 描述 |
---|---|---|---|
Action | String | 是 | 接口名称 |
Version | String | 是 | 接口版本。直播当前 API 的版本为 2020-06-01 |
ActivityId | Int64 | 是 | 直播间 ID。您可通过 ListActivityAPI 接口查询 ID |
ChatId | Int64 | 是 | 获取起始评论 ID,第一次传 0,之后传上次获取到的最后一个评论 ID |
Count | Int | 否 | 评论拉取数量,默认取值为 0 |
PollingType | Int | 否 | 评论拉取方式。支持以下两种取值
若 |
参数 | 类型 | 描述 |
---|---|---|
Data | Array of Chat | 评论内容 |
参数 | 类型 | 描述 |
---|---|---|
ChatId | Int | 评论 ID |
CreateTime | Int64 | 发送评论时间 |
TextContent | String | 评论内容 |
User | Array of UserInfo | 发送评论用户信息 |
IsDelete | Bool | 评论是否被删除。支持以下取值
|
LikeCount | Int | 评论点赞数 |
IsPresenter | Bool | 是否是主持人发送的评论。支持以下取值
|
reviewStatus | Int | 评论审核状态。支持以下取值
|
IsTipOff | Int | 评论举报状态。支持以下取值
|
参数 | 类型 | 描述 |
---|---|---|
UserId | Int | 用户 ID |
Nickname | String | 用户昵称 |
Get http://livesaas.volcengineapi.com/?Action=PollingChatAPI&Version=2020-06-01&ActivityId=1231231231&ChatId=0&Count=20&PollingType=0
{ "ResponseMetadata":{ "RequestId":"202201201826170101501312091D1C09D2", "Action":"PollingChatAPI", "Version":"2020-06-01", "Service":"livesaas", "Region":"cn-north-1", "SystemTime":1656067132 }, "Result":{ "Data":[ { "ChatId":31823336, "CreateTime":1591860377, "TextContent":"我们", "User":{ "Nickname":"11" , "UserId":1669024344048647 }, "IsDelete":true, "LikeCount":3, "IsPresenter":false, "reviewStatus":0, "IsTipOff": 0 } ] } }
{ "ResponseMetadata":{ "RequestId":"201806041104200100100232280022D30", "Action":"PollingChatAPI", "Version":"2020-06-01", "Service":"livesaas", "Region":"cn-north-1", "SystemTime":1656067132, "Error":{ "Code":"200000", "Message":"参数异常" } } }
访问公共错误码获取详细信息。