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:
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()
|
||||
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