From 6675d6db180ae0becf5e6df195cba2086876248e Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Fri, 4 Mar 2016 19:32:15 +0100 Subject: [PATCH] Aggiunta funzione getmatchlist --- lol.py | 9 +++++++++ 1 file changed, 9 insertions(+) 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']