pubgapi 0.0.5 copy "pubgapi: ^0.0.5" to clipboard
pubgapi: ^0.0.5 copied to clipboard

outdated

A Playerunknown's Battleground API wrapper for Dart!

pubgapi #

A PUBGAPI Framework

Usage #

A simple usage example:

import 'package:pubgapi/pubgapi.dart';

main() {
  var api = PUBGAPI($APIKEY);

  await api.getPlayerByName($name);
  await api.getSeasonInfo();
  await api.getSeasonByPlayerId();
  await api.getMatchById($matchID);


}

Player matches also support fetching the telemetry data for that match. So if you have a match object you can simply

var match = await api.getMatchById($matchID);
await match.loadTelemetryData(// Pass the PUBGAPI Instance);

print(match.telemetry.logPlayerKills.length);

If you're uncertain how to use the API, feel free to browse the unit tests. Also to run the tests just provide your own API key to the tests.

Features and bugs #

Please file feature requests and bugs in the issues.

0
likes
0
pub points
0%
popularity

Publisher

unverified uploader

A Playerunknown's Battleground API wrapper for Dart!

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

http, json_annotation

More

Packages that depend on pubgapi