AccountApi

class riotwatcher._apis.riot.AccountApi(base_api: riotwatcher._apis.BaseApi.BaseApi)

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

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

Initialize a new AccountApi which uses the provided base_api

Parameters:base_api (BaseApi) – the root API object to use for making all requests.
active_shard(region: str, game: str, puuid: str)

Get active shard for a player

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

Get account by puuid

Returns:AcountDto
by_riot_id(region: str, game_name: str, tag_line: str)

Get account by riot id

Returns:AccountDto