Пример #1
0
from leagueoflegends import LeagueOfLegends, RiotError

lol = LeagueOfLegends('RGAPIfcf985395c46447e815d77ae80c424be')

# Call the API with explicit summoner ID
id = lol.get_summoner_by_name('thispassing')
lol.get_games(id)
Пример #2
0
a = 2

if a==1:

    from leagueoflegends import LeagueOfLegends, RiotError


    lol = LeagueOfLegends('587a0251-12ba-4600-86f1-0bc65b21cb57')


    ##587a0251-12ba-4600-86f1-0bc65b21cb57
    ##8e702b3f-50a7-437a-b825-18627375da3e


    # Call the API with explicit summoner ID
    id = lol.get_summoner_by_name('your-summoner-name')
    lol.get_games(id)


    # Or set the ID globally for all future calls

    lol.set_summoner('bruntbear')
    lol.get_summoner_stats()
    lol.get_summoner_ranked_stats()



    # Access data through dictionaries

    try:
        teams = lol.get_summoner_teams()