Quick Tutorial

First, install the valaw module. See Installation for directions. After, you have installed valaw, you can import it into your project:

import valaw

Then, you can initialize the client:

client = valaw.Client("Riot_API_Token", "cluster")

Before you can use the client, you will need a Riot Games API token. If you don’t already have one you can follow Getting a Riot API Token to get one. The cluster should be the cluster that is closest to you.

After you have initialized the client, you can use it to make requests to the API. For example, if you want to get the content you can do:

async def func():
    content_data = await client.GET_getContent("region")

For other endpoints and examples see List of Endpoints

All of that put together looks like:

import valaw

client = valaw.Client("Riot_API_Token", "cluster")

async def func():
    content_data = await client.GET_getContent("region")