1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +00:00

Aggiunta funzione getmatchlist

This commit is contained in:
Steffo 2016-03-04 19:32:15 +01:00
parent ab1a38998d
commit 6675d6db18

9
lol.py
View file

@ -25,3 +25,12 @@ def getfreerotation():
}
r = requests.get("https://euw.api.pvp.net/api/lol/euw/v1.2/champion", params=parametri).json()
return r['champions']
def getmatchlist(sid):
parametri = {
'region': "euw",
'api_key': lolkey,
}
r = requests.get("https://euw.api.pvp.net/api/lol/euw/v2.2/matchlist/by-summoner/" + sid, params=parametri).json()
return r['matches']