Introduced


import { RiotApi } from "@valapi/riot-api";

Config

You Can Get Api Key From developer.riotgames.com

interface Config {
    /**
     * API Key
     */
    apiKey: string;

    /**
     * Region
     */
    region: Region.Identify;

    /**
     * Request Config
     */
    axiosConfig?: CreateAxiosDefaults;
}

Client

const client = new RiotApi([config]);