riot_api 0.0.7
riot_api: ^0.0.7 copied to clipboard
This package provides an easy way to use riot account api in Dart language.
example/README.md
riot_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 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);