tft_api 0.0.3 copy "tft_api: ^0.0.3" to clipboard
tft_api: ^0.0.3 copied to clipboard

This package provides an easy way to use the Riot games TFT(Teamfight Tactics) api in Dart language.

tft_api #

This package provides an easy way to use the Riot games TFT(Teamfight Tactics) api in Dart language.

You need your own Riot api key.

  • Teamfight Tactics
    • TFT-LEAGUE-V1
    • TFT-MATCH-V1
    • TFT-STATUS-V1
    • TFT-SUMMONER-V1

Requirements #

Here is 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.

// Get a list of match ids by PUUID.
final match = await TFTMatchV1.getMatchListByPuuid(PlatformValues.asia, puuid, count: 1);

/// Get the challenger league.
final league = await TFTLeagueV1.getChallengerLeague(RegionValues.kr);

// Get the top rated ladder.
final topLadder = await TFTLeagueV1.getTopRatedLadderByQueue(RegionValues.kr, "RANKED_TFT");

Additional packages #

We provide other Riot api packages:

How to Contribute #

If you want to contribute to this repository:

3
likes
140
points
50
downloads

Publisher

verified publishercoaspe.com

Weekly Downloads

This package provides an easy way to use the Riot games TFT(Teamfight Tactics) api in Dart language.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

json_annotation, plugin_platform_interface, riot_api

More

Packages that depend on tft_api