Exemplo n.º 1
0
def GetSummonerById(region, ident):
    global key, address, version
    r = urllib.request.urlopen(address+region+"/" + version + "/summoner/"+ident+"?api_key="+key)
    return Wrapper.asSummoner(json.loads(r.read().decode('utf-8')), ident)
Exemplo n.º 2
0
def GetSummonerByName(region, name):
    global key, address, version
    r = urllib.request.urlopen(address+region+"/" + version + "/summoner/by-name/"+name+"?api_key="+key)
    return Wrapper.asSummoner(json.loads(r.read().decode('utf-8')), name.lower())