anilibria 0.2.0 copy "anilibria: ^0.2.0" to clipboard
anilibria: ^0.2.0 copied to clipboard

outdated

A simple and robust way to interact with Anilibria API.

example/example.dart

import 'package:anilibria/anilibria.dart';

void main() async {
  final anilibria = Anilibria(Uri.parse('https://api.anilibria.tv/v2'));

  // Fetch one title
  final title = await anilibria.getTitle(id: 824);
  print(title.names?.en);

  // Fetch multiple titles
  final titles = await anilibria.getTitles(idList: [3542, 9006]);
  for (final title in titles) {
    print(title.names?.en);
  }

  // Fetch updated titles
  final updates = await anilibria.getUpdates(limit: 10);
  for (final update in updates) {
    print(update.names?.en);
  }
}
4
likes
0
points
73
downloads

Publisher

verified publisherarslee.dev

Weekly Downloads

A simple and robust way to interact with Anilibria API.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

http

More

Packages that depend on anilibria