mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
Aggiunta funzione getmatchlist
This commit is contained in:
parent
ab1a38998d
commit
6675d6db18
1 changed files with 9 additions and 0 deletions
9
lol.py
9
lol.py
|
@ -25,3 +25,12 @@ def getfreerotation():
|
||||||
}
|
}
|
||||||
r = requests.get("https://euw.api.pvp.net/api/lol/euw/v1.2/champion", params=parametri).json()
|
r = requests.get("https://euw.api.pvp.net/api/lol/euw/v1.2/champion", params=parametri).json()
|
||||||
return r['champions']
|
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']
|
||||||
|
|
Loading…
Reference in a new issue