diff --git a/lol.py b/lol.py index 0217c4b8..481ca365 100644 --- a/lol.py +++ b/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']