mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
/
This commit is contained in:
parent
0fa9f583e0
commit
9f5e2da3bf
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ async def get_player_rank(region: str, summonerid: int, **kwargs):
|
||||||
async def get_player_info(region: str, summonerid: int, **kwargs):
|
async def get_player_info(region: str, summonerid: int, **kwargs):
|
||||||
print("[League] Getting profile info for: {region} {summonerid}".format(region=region, summonerid=summonerid))
|
print("[League] Getting profile info for: {region} {summonerid}".format(region=region, summonerid=summonerid))
|
||||||
# GET the json API response
|
# GET the json API response
|
||||||
r = await loop.run_in_executor(None, requests.get, 'https://{region}.api.pvp.net//api/lol/{region}/v1.4/summoner/'
|
r = await loop.run_in_executor(None, requests.get, 'https://{region}.api.pvp.net/api/lol/{region}/v1.4/summoner/'
|
||||||
'{summonerid}/entry?api_key={token}'
|
'{summonerid}/entry?api_key={token}'
|
||||||
.format(region=region, summonerid=summonerid, token=token))
|
.format(region=region, summonerid=summonerid, token=token))
|
||||||
# Ensure the request is successful
|
# Ensure the request is successful
|
||||||
|
|
Loading…
Reference in a new issue