lol_api 0.0.9 copy "lol_api: ^0.0.9" to clipboard
lol_api: ^0.0.9 copied to clipboard

This package provides an easy way to use the League of Legends api in Dart language.

example/README.md

lol_api_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 accountId = 'your-account-id';

// Get Summoner by accountId
final summoner =
    await SummonerV4.getSummonerByAccountId(RegionValues.kr, accountId);

// Get Match IDs by puuid
final matchIds = await MatchV5.getMatchIdsByPuuid(
    PlatformValues.asia, puuid,
    count: 1);

// Get Match information by match ID from query above.
final match =
    await MatchV5.getMatchByMatchId(PlatformValues.asia, matchIds[0]);
3
likes
120
pub points
0%
popularity

Publisher

verified publishercoaspe.com

This package provides an easy way to use the League of Legends api in Dart language.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

json_annotation, plugin_platform_interface, riot_api

More

Packages that depend on lol_api