pseudonym117 / Riot-Watcher

Simple Python wrapper for the Riot Games API for League of Legends
MIT License
531 stars 150 forks source link

Fix entries endpoint for tft #226

Closed MOSA96 closed 1 year ago

MOSA96 commented 1 year ago

Documentation shows that the order is /{tier}/{division}. However, this returns a 400. After analyzing the request url in the developer site the correct one shows as /{division}/{tier}

pseudonym117 commented 1 year ago

As per https://developer.riotgames.com/apis#tft-league-v1/GET_getLeagueEntries, the correct URL pattern is /tft/league/v1/entries/{tier}/{division}.