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