您的位置:首页 > 其它

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

2016-01-19 16:53 344 查看
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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  dota2 v社