![]() Print( 'future requests wait until the retry-after time passes') ![]() Print( 'this retry-after is handled by default by the RiotWatcher library') by_name( my_region, 'this_is_probably_not_anyones_summoner_name') # The 429 status code indicates that the user has sent too many requests # in a given amount of time ("rate limiting"). # For Riot's API, the 404 status code indicates that the requested data wasn't found and # should be expected to occur in normal operation, as in the case of a an # invalid summoner name, match ID, etc. # Lets get some champions current_champ_list = lol_watcher. versions_for_region( my_region)Ĭhampions_version = versions # First we get the latest version of the game from data dragon versions = lol_watcher. ![]() # all objects are returned (by default) as a dict # lets see if i got diamond yet (i probably didnt) my_ranked_stats = lol_watcher. From riotwatcher import LolWatcher, ApiError lol_watcher = LolWatcher( '') ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |