最近更新时间:2023.02.01 14:10:46
首次发布时间:2023.02.01 14:10:46
获取直播间的答题列表。
以下请求参数列表仅列出了该接口的部分公共参数,完整公共参数列表见公共请求参数。
参数 | 类型 | 是否必选 | 描述 |
---|---|---|---|
Action | String | 是 | 接口名称 |
Version | String | 是 | 接口版本。直播当前 API 的版本为 2020-06-01 |
ActivityId | Int64 | 是 | 直播间 ID。您可以通过调用 ListActivityAPI 接口查询 ID |
PageNo | Int | 否 | 分页查询页码,默认取值为 1 |
PageItemCount | Int | 否 | 分页查询数量,默认取值为 10 |
参数 | 类型 | 描述 |
---|---|---|
PageNo | Int | 分页查询页码 |
PageItemCount | Int | 分页查询数量 |
PageTotalCount | Int | 查询结果总数 |
QuizStatisticsList | Array of QuizStatistics | 答题列表信息 |
参数 | 类型 | 描述 |
---|---|---|
TotalCount | Int | 参与人数 |
QuizTitle | String | 答题标题 |
QuizTitleType | Int | 答题类型
|
SendTime | Int | 答题的发送时间,Unix 时间戳,单位为秒 |
Deadline | Int | 答题时间,单位为秒 |
RightCount | Int | 答对人数 |
QuizID | Int | 答题 ID |
Get http://livesaas.volcengineapi.com/?Action=ListQuizStatisticsAPI&Version=2020-06-01&ActivityId=1231231231
{ "ResponseMetadata": { "RequestId": "20230110191015E1E36F18E6672AFA3E3A", "Action": "ListQuizStatisticsAPI", "Version": "2020-06-01", "Service": "livesaas", "Region": "cn-north-1", "SystemTime": 1673349015 }, "Result": { "PageNo": 1, "PageItemCount": 10, "PageTotalcount": 1, "QuizStatisticsList": [ { "TotalCount": 1, "QuizTitle": "答题1", "QuizTitleType": 0, "SendTime": 1673348926, "Deadline": 30, "RightCount": 0, "QuizID": 1754628061265087 } ] } }
{ "ResponseMetadata": { "RequestId": "2023010901154861C57537B04A4A16B7C1", "Action": "ListQuizStatisticsAPI", "Version": "2020-06-01", "Service": "livesaas", "Region": "cn-north-1", "Error": { "Code": "InvalidParameter.ActivityIdNotFound", "Message": "The specified parameter ActivityId is invalid." }, "SystemTime": 1673198148 }, "Result": null }
下表提供了该接口特有的错误码,公共错误码请参见公共错误码文档。
状态码 | 错误码 | 错误信息 | 说明 |
---|---|---|---|
400 | InvalidParameter.ActivityIdInvalid | The specified parameter ActivityId is invalid. | 直播间 ID 不符合规范,请修改后重试 |
500 | InternalError | The request has failed due to an unknown error. | 请求处理过程中出现了未知错误,请联系技术支持获取帮助 |