viktor v0.0.7 Viktor

Viktor

Examples

Viktor.start_link
current_game = Viktor.current_game("na", 21066)

Summary

Functions

API Key

Get challenger tier leagues

Retrieve champion by ID

Gets all champion masteries for a summoner

Gets all champion masteries for a summoner

Retrieve all champions

Get current game information for the given summoner ID

Get list of featured_games

Get league entries mapped by summoner ID for a given list of summoner IDs

Get leagues mapped by summoner ID for a given list of summoner IDs

Get master tier leagues

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

Retrieve match by match ID

Retrieve match by match ID

See Viktor.MatchList.match_list/2

See Viktor.MatchList.match_list/3

Get recent games by summoner ID

Get league entries mapped by team ID for a given list of team IDs

Get leagues mapped by team ID for a given list of team IDs

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

Functions

api_key()

API Key

Examples

Viktor.api_key
challenger_league(region, type)

Get challenger tier leagues.

Examples

challenger_league = Viktor.challenger_league("na", "RANKED_SOLO_5x5")
champion(region, id)

Retrieve champion by ID.

Examples

champion = Viktor.champion("na", 1)
champion_masteries(region, summoner_id)

Gets all champion masteries for a summoner.

Examples

masteries = Viktor.champion_masteries("na", 21066)
champion_mastery(region, summoner_id, champion_id)

Gets all champion masteries for a summoner.

Examples

mastery = Viktor.champion_mastery("na", 21066, 1)
champions(region, free_to_play)

Retrieve all champions.

Examples

All Champions

all_champions = Viktor.champion("na")
free_champions = Viktor.champion("na", true)
current_game(region, summoner_id)

Get current game information for the given summoner ID.

Examples

current_game = Viktor.current_game("na", 21066)
league_entries(region, summoner_ids)

Get league entries mapped by summoner ID for a given list of summoner IDs.

Examples

league_entries = Viktor.league_entries("na", "21066")
leagues(region, summoner_ids)

Get leagues mapped by summoner ID for a given list of summoner IDs.

Examples

leagues = Viktor.leagues("na", "21066")
master_league(region, type)

Get master tier leagues.

Examples

master_league = Viktor.master_league("na", "RANKED_SOLO_5x5")
mastery_score(region, summoner_id)

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

Examples

mastery_score = Viktor.mastery_score("na", 21066)
match(region, match_id)

Retrieve match by match ID.

Examples

match = Viktor.match("na", 2077473238)
match(region, match_id, include_timeline)

Retrieve match by match ID.

Examples

match = Viktor.match("na", 2077473238, true)
match_list(region, summoner_id)

See Viktor.MatchList.match_list/2.

match_list(region, summoner_id, params)

See Viktor.MatchList.match_list/3.

recent_games(region, summoner_id)

Get recent games by summoner ID.

Examples

recent_games = Viktor.recent_games("na", 21066)
start_link()
start_link(api_key)
team_league_entries(region, team_ids)

Get league entries mapped by team ID for a given list of team IDs.

Examples

team_league_entries = Viktor.team_league_entries("na", "TEAM-fa073ee0-51ca-11e4-82cc-782bcb4d0bb2")
team_leagues(region, team_ids)

Get leagues mapped by team ID for a given list of team IDs.

Examples

team_leagues = Viktor.team_leagues("na", "TEAM-fa073ee0-51ca-11e4-82cc-782bcb4d0bb2")
top_champion_masteries(region, summoner_id)

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

Examples

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