ChampionMasteryApiV4

class riotwatcher._apis.league_of_legends.ChampionMasteryApiV4(base_api: riotwatcher._apis.BaseApi.BaseApi)

This class wraps the Champion-Mastery-v4 Api calls provided by the Riot API.

See https://developer.riotgames.com/api-methods/#champion-mastery-v4/ for more detailed information

Initialize a new ChampionMasteryApiV4 which uses the provided base_api

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

Get all champion mastery entries.

Parameters:
  • region (string) – the region to execute this request on
  • encrypted_summoner_id (string) – Summoner ID associated with the player
Returns:

List[ChampionMasteryDTO]: This object contains a list of Champion Mastery information for player and champion combination.

by_summoner_by_champion(region: str, encrypted_summoner_id: str, champion_id: int)

Get a champion mastery by player ID and champion ID.

Parameters:
  • region (string) – the region to execute this request on
  • encrypted_summoner_id (string) – Summoner ID associated with the player
  • champion_id (long) – Champion ID to retrieve Champion Mastery for
Returns:

ChampionMasteryDTO: This object contains single Champion Mastery information for player and champion combination.

scores_by_summoner(region: str, encrypted_summoner_id: str)

Get a player’s total champion mastery score, which is the sum of individual champion mastery levels

Parameters:
  • region (string) – the region to execute this request on
  • encrypted_summoner_id (string) – Summoner ID associated with the player
Returns:

int