viktor v0.1.1 Viktor.Operation.ChampionMastery

Wrapper for Champion Mastery endpoint.

Summary

Functions

Get a champion mastery by player id and champion id. Response code 204 means there were no masteries found for given player id or player id and champion id combination

Get all champion mastery entries sorted by number of champion points descending

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

Get specified number of top champion mastery entries sorted by number of champion points descending

Functions

champion(region, summoner_id, champion_id)

Get a champion mastery by player id and champion id. Response code 204 means there were no masteries found for given player id or player id and champion id combination.

Examples

champion = Viktor.ChampionMastery.champion("na", 21066, 5)
champions(region, summoner_id)

Get all champion mastery entries sorted by number of champion points descending.

Examples

champion = Viktor.ChampionMastery.champions("na", 21066)
score(region, summoner_id)

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

Examples

score = Viktor.ChampionMastery.score("na", 21066)
topchampions(region, summoner_id, count \\ 3)

Get specified number of top champion mastery entries sorted by number of champion points descending.

Examples

default_is_3 = Viktor.ChampionMastery.topchampion("na", 21066)
top_10 = Viktor.ChampionMastery.topchampion("na", 21066, 10)