@tqman/valoffi-api-client
v1.1.0
Published
Type-safe API client for Valorant-API.com
Downloads
23
Maintainers
Readme
VALOFFI API CLIENT
It is a type safe implementation of an api client for VALORANT-API.com.
VALOFFI is VALORANT + Officer (alias for the developer who made valorant-api.com)
Installation
Install @tqman/valoffi-api-client with npm, pnpm or yarn
npm i @tqman/valoffi-api-client@latest
pnpm add @tqman/valoffi-api-client@lastest
yarn add @tqman/valoffi-api-client@latest
Example
import { OffiApiClient } from "@tqman/valoffi-api-client";
const api = new OffiApiClient();
// or with parsing
// const api = new OffiApiClient({
// parseResponseData: true,
// });
const {
data: { riotClientVersion },
} = await api.fetch("version");
console.log(
"Latest RSO User-Agent\n",
"->",
`RiotClient/${riotClientVersion} rso-auth (Windows;10;;Professional, x64)`,
);
Disclaimer
THIS PROJECT IS NOT ASSOCIATED OR ENDORSED BY RIOT GAMES. Riot Games, and all associated properties are trademarks or registered trademarks of Riot Games, Inc. Whilst effort has been made to abide by Riot's API rules; you acknowledge that use of this software is done so at your own risk.