26 lines
643 B
Dart
26 lines
643 B
Dart
import 'dart:convert';
|
|
|
|
import 'package:overfast_api/client.dart';
|
|
import 'package:overfast_api/utils/types.dart';
|
|
|
|
void main(List<String> args) async {
|
|
final client = Overfast();
|
|
|
|
// final me = client.players.player('Rapougnac-2980');
|
|
|
|
// final stats = await me.statsSummary();
|
|
|
|
// print(stats.heroes['doomfist']!.gamesWon);
|
|
|
|
// final doom = await client.heroes.hero(Hero.doomfist,locale: Locale.frFr);
|
|
|
|
// print(doom.description);
|
|
|
|
// final heroes = await client.heroes.heroes(locale: Locale.frFr);
|
|
|
|
// print(jsonEncode(heroes));
|
|
|
|
final hero = client.heroes.hero(HeroKey.junkerqueen, locale: Locale.frFr);
|
|
print(hero);
|
|
}
|