如何通过V社官方API查找比赛记录

来源:互联网 发布:淘宝店铺上传宝贝软件 编辑:程序博客网 时间:2024/05/01 08:16
API基本介绍。
http://dev.dota2.com/showthread.php?t=58317

查询某一联赛所有比赛步骤:

1、查询该联赛 league_id

2、使用以下API查询所有比赛
https://api.steampowered.com/IDOTA2Match_570/GetMatchHistory/V001/?key=&league_id=<<span style="line-height: 21px;">league_id>
保存所有match_id记录

3、查询出来之后,可以使用以下API查询某一比赛的详细信息。
https://api.steampowered.com/IDOTA2Match_570/GetMatchDetails/V001/?key=&match_id=<<span style="line-height: 21px;">match_id>

这里面涉及太多id。
有些id需要列成字典保存。
1、英雄id
2、玩家id
3、队伍id
0 0
原创粉丝点击