lol_api 0.0.2
lol_api: ^0.0.2 copied to clipboard
League of Legends api.
example/README.md
lol_api_example #
First, generate riot api key.
Initialize RiotApi class with your api key.
RiotApi.init(apiKey: 'your-api-key'))
And use APIname.queryFunction form to call query function.
You can check available query.
// Get Summoner by accountId
const accountId = 'your-account-id';
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]);