GET_getByAccessToken
API URL:
https://{cluster}.api.riotgames.com/riot/account/v1/accounts/me
Description
Get account by access token.
async def GET_getByAccessToken(self, authorization: str, cluster: str = None) -> dict:
Arguments
authorization: String - The access token
Keyword Arguments
cluster: String = None
Examples
Basic example (Just required arguments)
import valaw
client = valaw.Client("riot_api_token", "cluster")
async def func():
account_data = await client.GET_getByAccessToken("Authorization")
Advanced example (With Keyword Arguments)
import valaw
client = valaw.Client("riot_api_token", "cluster")
async def func():
account_data = await client.GET_getByAccessToken("authorization", cluster="cluster")