dart_royale 1.2.5 dart_royale: ^1.2.5 copied to clipboard
An easy way to get data from the royale API. Documentation is available at https://github.com/Acnologla/dart_royale/
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add dart_royale
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
dart_royale: ^1.2.5
Alternatively, your editor might support dart pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:dart_royale/Royale.dart';
import 'package:dart_royale/structures/clan.dart';
import 'package:dart_royale/structures/player.dart';
import 'package:dart_royale/structures/popular.dart';
import 'package:dart_royale/structures/request.dart';
import 'package:dart_royale/structures/top.dart';
import 'package:dart_royale/structures/tournament.dart';