获取赛事列表
更新时间:2024-06-06
接口说明
本接口用于获取当前用户的赛事列表。
请求
请求路径
Path | Method | 说明 |
---|---|---|
/v1/event | GET | 获取该用户下的赛事列表 |
请求参数
参数名 | 类型 | 是否必须 | 描述 |
---|---|---|---|
pageSize | Int | 是 | 每页数量 |
pageNo | Int | 是 | 页码 |
请求头
无其他特殊头域
请求体
无
响应
响应头域
除公共头域外,无其他特殊头域。
响应体
参数名 | 类型 | 描述 | 备注 |
---|---|---|---|
pageNo | Int | 页码 | |
pageSize | Int | 每页数量 | |
totalCount | Int | 总数量 | |
eventList | List | 返回的赛事列表 | |
+id | String | 赛事ID | 唯一标识一场赛事 |
+userId | String | 用户ID | |
.... | ..... | 详见实体说明中Event其他字段 |
示例
-
请求示例
Text1GET /v1/event?pageNo=1&pageSize=10 HTTP/1.1 2host: {host} 3content-type: application/json 4authorization: bce-auth-v1/f1a2705d3cf8448cb917684c4f40ac1f/2023-11-08T07:19:17Z/3600/host;x-bce-account;x-bce-console-rpc-id;x-bce-date;x-bce-request-id/31b7dce808571441fb78077e74c048495945536909bbebd37e4037b7c796bf15
-
响应示例
Text1HTTP/1.1 200 OK 2x-bce-request-id: 8dbde9a9-34e8-4071-afa0-b6d4c4e974b2 3Date: Tue, 08 Now 2023 15:00:00 GMT 4Content-Type: application/json;charset=UTF-8 5 6{ 7 "pageNo":1, 8 "pageSize":10, 9 "totalCount":1, 10 "eventList":[ 11 { 12 "id":"event-aaaaaa1", 13 "userId":"xxx", 14 "deviceId":"device-aaaaaa1", 15 "name":"三亚沙滩排球\"甘伯杯\"2023年预选赛1", 16 "state":"notStarted", 17 "sportType":"volleyball", 18 "startTime":1667890800, 19 "endTime":1667898000, 20 "media":{ 21 "liveStream":[ 22 "1080p" 23 ], 24 "recording":[ 25 "1080p" 26 ], 27 "mediaState":"liveStreamUnready" 28 }, 29 "graphics":{ 30 "patternId":"pattern-1", 31 "team":{ 32 "homeTeam":{ 33 "name":"非凡排球" 34 }, 35 "awayTeam":{ 36 "name":"沙排联盟" 37 } 38 }, 39 "scoreboard":[ 40 { 41 "index":1, 42 "homeTeamScore":2, 43 "awayTeamScore":4 44 }, 45 { 46 "index":2, 47 "homeTeamScore":5, 48 "awayTeamScore":10 49 } 50 ], 51 "text":[ 52 { 53 "index":1, 54 "content":"三亚沙滩排球\"甘伯杯\"2023年预选赛" 55 } 56 ], 57 "image":[ 58 { 59 "index":1, 60 "imageUrl":"http://xxx_1.jpg" 61 }, 62 { 63 "index":2, 64 "imageUrl":"http://xxx_2_new.jpg" 65 }, 66 { 67 "index":3, 68 "imageUrl":"http://xxx_3.jpg" 69 } 70 ] 71 } 72 } 73 ] 74}