In this presentation, I compare two API's created for two leading MOBA games. I show why one of them is user-friendly and one of them is not. I also try to answer a question what features good API has.
4. • Launched: Oct 27, 2009
• Number of players: 67 million a month
• Developer: Riot Games
• Launched: July 9, 2013
• Number of players: 8 million a month
• Developer: Valve Corporation
15. • find summoner by name and region
=> you get summoner_id
16. • find summoner by name and region
=> you get summoner_id
• hit games endpoint with summoner_id
=> you get list of games with win/lose info
17. • find player by name and region
=> you get player_id
18. • find player by name and region
=> you get player_id
• hit matches endpoint with player_id
=> you get list of games without(!) win/lose info
=> you take match_ids for five last matches
19. • find player by name and region
=> you get player_id
• hit matches endpoint with player_id
=> you get list of games without(!) win/lose info
=> you take match_ids for five last matches
• you hit match endpoint 5 times to get win/lose info
28. • you have steamID (STEAM_0:1:123456)
• you have to use some library that will calculate a
proper profile id (76561198059906731)
29. • you have steamID (STEAM_0:1:123456)
• you have to use some library that will calculate a
proper profile id (76561198059906731)
• 76561198059906731 -
30. • you have steamID (STEAM_0:1:123456)
• you have to use some library that will calculate a
proper profile id (76561198059906731)
• 76561198059906731 - 76561197960265728
31. • you have steamID (STEAM_0:1:123456)
• you have to use some library that will calculate a
proper profile id (76561198059906731)
• 76561198059906731 - 76561197960265728
• now you get dota2_account_id: 99641003