val_api 0.2.0
val_api: ^0.2.0 copied to clipboard
This package provides an easy way to use the Valorant api in Dart language.
val_api #
This package provides an easy way to use the Riot games Valorant api in Dart language.
You need your own Riot api key.
- Valorant api
- VAL-CONSOLE-MATCH-V1
- VAL-CONSOLE-RANKED-V1
- VAL-CONTENT-V1
- VAL-MATCH-V1 (Because of policy issue, not tested yet 😭.)
- VAL-RANKED-V1
- VAL-STATUS-V1
Requirements #
Here is what you need to use the Dart SDK:
- Dart 3.9.0 or higher
Example #
First, generate riot api key.
Initialize RiotApi with your api key.
RiotApi.init(apiKey: 'your-api-key');
And use APIname.queryFunction form to call query function.
You can check available api.
// Get content optionally filtered by locale
final content = await ValContentV1.getContentByLocale(ValRegionValues.kr);
// Get platform status.
final status = await ValStatusV1.getPlatformStatus(ValRegionValues.kr);
const actId = 'your-act-id';
// Get leaderboard
final board = await ValRankedV1.getLeaderboard(ValRegionValues.kr, actId, size: 100);
// Get a PlayStation match list.
final consoleMatches = await ValConsoleMatchV1.getMatchlistByPuuid(
ValRegionValues.ap,
puuid,
ValConsolePlatformType.playstation,
);
Additional packages #
We provide other Riot api packages:
- riot_api (Riot account api)
- lol_api (League of Legends api)
- tft_api (Teamfight Tactics api)
- lor_api (Not supported yet)
How to Contribute #
If you want to contribute to this repository: