Пример #1
0
    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()
        for t in teams:
            print t["name"]
            for m in t["roster"]["memberList"]:
                id = m["playerId"]
                print id
                print lol.get_summoner_by_id(id)["name"]
    except RiotError, e:
        print e.error_msg
    
   
   
   
if a == 2:   
    import fetchLoL
    from utils import todict