Пример #1
0
    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

    

    riot = fetchLoL.RiotClient("587a0251-12ba-4600-86f1-0bc65b21cb57")
    
    ##587a0251-12ba-4600-86f1-0bc65b21cb57