help https://auth.riotgames.com/userinfo api not work :\
Closed this issue · 0 comments
thedtvn commented
code
async with aiohttp.ClientSession() as s:
headers = {"Authorization": "Bearer " + riotgamesauth["auth"]['access_token'],
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36",
"Content-Type": "application/json",
}
async with s.get("https://auth.riotgames.com/userinfo") as r:
print(r.status)
print(await r.text())