riot_api 0.1.0 copy "riot_api: ^0.1.0" to clipboard
riot_api: ^0.1.0 copied to clipboard

This package provides an easy way to use Riot account api in Dart language.

riot_api #

This package provides an easy way to use Riot account api in Dart language.

If you want League of Legends api package visit here.

  • Riot account api
    • ACCOUNT-V1

Requirements #

Here are what you need to use the Dart SDK:

  • Dart 2.19.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.

const puuid = 'your-puuid';

// Get account information by puuid.
final user = await AccountV1.getAccountByPuuid(PlatformValues.asia, puuid);

// Get account information by gameName and tagLine.
final user2 = await AccountV1.getAccountByRiotId(PlatformValues.asia, gameName, tagLine);

Additional packages #

We provide other Riot api packages:

How to Contribute #

If you want to contribute to this repository:

3
likes
150
points
125
downloads

Publisher

verified publishercoaspe.com

Weekly Downloads

This package provides an easy way to use Riot account api in Dart language.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

http, json_annotation, plugin_platform_interface

More

Packages that depend on riot_api