riot-games-api

How can I get in game player ELO with the Riot Games API without reaching the API limit?

限于喜欢 提交于 2020-01-07 05:12:12
问题 I have a question about the RiotGames API. I have an API Token from Riot Games and its limited to 10 Requests per second. However, when I want to read in game info with player Elo + Divisions, I need to do another request. With the in game info I only get champion runes masteries and so on, but I still need the elo, so I need to do another Request to the server. By the time I have looped all 10 players, I have reached the API limit because I need to do the general request for a player list

Deserialize JSON from Riot API C#

时光毁灭记忆、已成空白 提交于 2019-12-24 15:46:06
问题 I have some problem to deserialize JSON response from the RIOT API in C#. I want to get the list of "Champion" and the API return a stream like this : { "type":"champion", "version":"6.1.1", "data":{ "Thresh":{ "id":412, "key":"Thresh", "name":"Thresh", "title":"the Chain Warden" }, "Aatrox":{ "id":266, "key":"Aatrox", "name":"Aatrox", "title":"the Darkin Blade" },... } } All data has the same attributes (id, key, name and title) so I create a champion class : public class Champion { public