企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持知识库和私有化部署方案 广告
## 3.16 体育推送日志接口 GET: ~~~ /api/v1/push/log ~~~ 接口概述:获取所有推送日志 建议频率:需要时查询 | 请求参数 | 数据类型 | 是否必填 | 描述 | | --- | --- | --- | --- | | sport_id | int | 是 | 运动ID | | channel | int | 是 | 每个推送地址下的channel字段 。(1)live推送地址的channel: live;(2)data推送地址的channel: region、league、series、team、player、match、result;lineup推送地址的channel:lineup;odds推送地址的channel:odds| | push_id | int | 否 | channel对应的ID | | token | string | 是 | 用户密钥 | | page| int | 否 |页数 | | per_page| int | 否 |每页数据条数。请求live,per_page限制10( 输入超过10, 返回数据以10条为准);请求其余的channel,per_page限制100 | 请求url示例 ~~~ /api/v1/push/log?channel=live&sport_id=202&push_id=329557&page=1&per_page=10 ~~~ ~~~ 数据格式示例 { "code": 0, "data": { //推送的数据 "list": [ { "sport_id": 201, //运动ID "channel": "match", // channel "push_type": "update", "data": { "animation_url": null, "end_time": 0, "has_push": -1, "has_rate": -1, "id": 399190, "live_urls": null, "menu": 0, "quarter": 0, "series": { "abbr": "WCBA", "cover": "", "end_time": 1677427199, "id": 9663, "is_hot": 1, "league_id": 13, "league_name": "", "league_name_en": "", "level": 2, "name": "中国女子篮球联赛", "name_en": "Chinese Women's Basketball League", "region_id": 138, "season_name": "22-23", "sport_id": 201, "start_time": 1669737600, "status": "live", "year": 2022 }, "sport_id": 201, "start_time": 1681613400, "status": "delete", "teams": [ { "index": 1, "score": 0, "team_id": 56338, "team_info": { "abbr": "米特图库曼", "icon": "", "id": 56338, "logo": "xxxxx.png", "name": "米特图库曼", "name_en": "Mitre de Tucuman" }, "win_rate": 0 }, { "index": 2, "score": 0, "team_id": 104801, "team_info": { "abbr": "LBNA", "icon": "xxxxx.png", "id": 104801, "logo": "xxxxx.png", "name": "LBNA", "name_en": "LBNA" }, "win_rate": 0 } ], "update_time": 1681097137, "win_team": 0 }, "created_at": 1681097137, //推送时间(时间戳) "created_at_str": "2023-04-10 11:25:37" //推送时间(格式时间) }, ~~~ | 返回参数 | 数据类型 | 描述 | 备注 | | --- | --- | --- | --- | | channel | int | 每个推送地址下的channel字段 | | | sport_id | int |运动ID | | | push_id | int | channel对应的ID | | | data | string | 推送数据 | | | total | string | 记录总数 | | | created_at | string | 推送时间(时间戳)| | | created_at_str | string | 推送时间 (格式时间)| |