Site icon Flutter Packages | Pub dev Packages – Flutter Mobile App World

A MangaDex API wrapper for Dart/Flutter

A MangaDex API wrapper for Dart

Usage

A simple usage example:

import 'package:mangadex_api/mangadex_api.dart';

main() {
  var client = MDClient();

  client.getChapter('5e8bc984-5f3f-4fb1-b6ee-cf7f3812b112').then((chapter) {
    print(chapter!.title);
  });

  client.getMangaInfo('a96676e5-8ae2-425e-b549-7f15dd34a6d8',
      appendChapters: true, translatedLang: ['cs']).then((m) {
    print(m!.title['en']);
  });
}

Currently if you login, only requests where authentication is required will be done with your token, unless you set the useLogin parameter in a function as true.

Captcha

If the server returns a captcha, the library will throw a [CaptchaException], which, if handled, has the sitekey inside. After you solve the captcha, you need to pass the result to the [solveCaptcha] function.

What’s implemented

What’s NOT yet implemented

Don’t forget to check the docs

Features and bugs

Please file feature requests and bugs at the issue tracker.

Contribute to MangaDex API wrapper on GitHub

https://github.com/hernikplays/mangadex-dart-api

Exit mobile version