LeagueApiV4¶
-
class
riotwatcher._apis.
LeagueApiV4
(base_api)¶ This class wraps the League-v4 Api calls provided by the Riot API.
See https://developer.riotgames.com/api-methods/#league-v4/ for more detailed information
-
by_id
(region, league_id)¶ Get league with given ID, including inactive entries
Parameters: - region (string) – the region to execute this request on
- league_id (string) – the league ID to query
Returns: LeagueListDTO
-
by_summoner
(region, encrypted_summoner_id)¶ Get league entries in all queues for a given summoner ID
Parameters: - region (string) – the region to execute this request on
- encrypted_summoner_id (string) – the summoner ID to query
Returns: Set[LeagueEntryDTO]
-
challenger_by_queue
(region, queue)¶ Get the challenger league for a given queue.
Parameters: - region (string) – the region to execute this request on
- queue (string) – the queue to get the challenger players for
Returns: LeagueListDTO
-
entries
(region, queue, tier, division, page=1)¶ Get all the league entries
Parameters: - region (string) – the region to execute this request on
- queue (string) – the queue to query, i.e. RANKED_SOLO_5x5
- tier (string) – the tier to query, i.e. DIAMOND
- division (string) – the division to query, i.e. III
- page (int) – the page for the query to paginate to. Starts at 1.
Returns: Set[LeagueEntryDTO]
-
grandmaster_by_queue
(region, queue)¶ Get the grandmaster league for a given queue.
Parameters: - region (string) – the region to execute this request on
- queue (string) – the queue to get the grandmaster players for
Returns: LeagueListDTO
-
masters_by_queue
(region, queue)¶ Get the master league for a given queue.
Parameters: - region (string) – the region to execute this request on
- queue (string) – the queue to get the master players for
Returns: LeagueListDTO
-
positions_by_summoner
(region, encrypted_summoner_id)¶ DEPRECATED
Get league positions in all queues for a given summoner ID
Parameters: - region (string) – the region to execute this request on
- encrypted_summoner_id (string) – the summoner ID to query
Returns: Set[LeaguePositionDTO]
-