SummonerApi

class riotwatcher._apis.team_fight_tactics.SummonerApi(base_api: riotwatcher._apis.BaseApi.BaseApi)

This class wraps the TFT-Summoner-v1 Api calls provided by the Riot API.

See https://developer.riotgames.com/apis#tft-summoner-v1 for more detailed information.

Initializes a new SummonerApi 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

Returns:SummonerDTO
by_id(region: str, encrypted_summoner_id: str)

Get a summoner by summoner ID

Returns:SummonerDTO
by_name(region: str, summoner_name: str)

Get a summoner by summoner name.

Returns:SummonerDTO
by_puuid(region: str, puuid: str)

Get a summoner by PUUID.

Returns:SummonerDTO