java - How can I get in game player ELO with the Riot Games API without reaching the API limit? -
i have question riotgames api. have api token riot games , limited 10 requests per second. however, when want read in game info player elo + divisions, need request. in game info champion runes masteries , on, still need elo, need request server.
by time have looped 10 players, have reached api limit because need general request player list , other requests each player.
you error handling retry request when receive response says limit has exceeded.
function request(player) response = riotgamesapi(player1) if response.status == "limit exceeded" response = request(player) else return response end end
this call recursively until receive valid response
Comments
Post a Comment