1.1.0 • Published 3 months ago

@tqman/valoffi-api-client v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

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.

1.1.0

3 months ago

1.0.2

6 months ago

1.0.1

9 months ago

1.0.0

10 months ago

0.0.0

10 months ago