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
- Log-in
- Get Chapters
- Get Manga
- Get cover
- Manga search
- Get user
- Captcha
- Get group
- Logged in user's followed manga chapter feed
What's NOT yet implemented
- CustomLists
- and a bunch of other stuff
Follow progress to the official 1.0.0 release here
Features and bugs
Please file feature requests and bugs at the issue tracker.
Libraries
- mangadex_api
- MangaDex API wrapper