Exemplo n.º 1
0
def get_summoner_by_name(summoner_name):
    formatted_summoner_name = format_summoner_name(summoner_name)
    url = summoner_by_name_url.format(base_url, formatted_summoner_name)
    return get_from_riot_api(url)
Exemplo n.º 2
0
def get_match_by_summoner_name(summoner_name):
    account_id = get_summoner_by_name(summoner_name).get('accountId')
    url = match_by_account.format(base_url, account_id)
    return get_from_riot_api(url)
Exemplo n.º 3
0
def get_champions():
    return get_from_riot_api(champion_url)
Exemplo n.º 4
0
def get_match_by_id(match_id):
    url = match_by_id.format(base_url, match_id)
    return get_from_riot_api(url)
Exemplo n.º 5
0
def get_mastery_by_summoner(summoner_name):
    summoner_id = get_summoner_by_name(summoner_name).get('id')
    url = mastery_by_summoner_url.format(base_url, summoner_id)
    return get_from_riot_api(url)