LeagueApiV4¶
-
class
riotwatcher._apis.league_of_legends.
LeagueApiV4
(base_api: riotwatcher._apis.BaseApi.BaseApi)¶ 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
Initialize a new LeagueApiV4 which uses the provided base_api
Parameters: base_api (BaseApi) – the root API object to use for making all requests. -
by_id
(region: str, league_id: str)¶ 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: str, encrypted_summoner_id: str)¶ 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: str, queue: str)¶ 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: str, queue: str, tier: str, division: str, page: int = 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: str, queue: str)¶ 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: str, queue: str)¶ 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
-