SummonerApiV4¶
-
class
riotwatcher._apis.league_of_legends.
SummonerApiV4
(base_api: riotwatcher._apis.BaseApi.BaseApi)¶ This class wraps the Summoner-v4 endpoint calls provided by the Riot API.
See https://developer.riotgames.com/api-methods/#summoner-v4 for more detailed information
Initialize a new SummonerApiV4 which uses the provided base_api
Parameters: base_api (BaseApi) – the root API object to use for making all requests. -
by_account
(region: str, encrypted_account_id: str)¶ Get a summoner by account ID.
Parameters: - region (string) – The region to execute this request on
- encrypted_account_id (string) – The account ID.
Returns: SummonerDTO: represents a summoner
-
by_id
(region: str, encrypted_summoner_id: str)¶ Get a summoner by summoner ID.
Parameters: - region (string) – The region to execute this request on
- encrypted_summoner_id (string) – Summoner ID
Returns: SummonerDTO: represents a summoner
-
by_name
(region: str, summoner_name: str)¶ Get a summoner by summoner name
Parameters: - region (string) – The region to execute this request on
- summoner_name (string) – Summoner Name
Returns: SummonerDTO: represents a summoner
-
by_puuid
(region: str, encrypted_puuid: str)¶ Get a summoner by PUUID.
Parameters: - region (string) – The region to execute this request on
- encrypted_puuid (string) – PUUID
Returns: SummonerDTO: represents a summoner
-