jikan_dart 0.9.0

Jikan bindings for jikan api is returns built_value structures so you need to have it in your dependencies

Build status: alt text

Available API methods:

Future<BuiltList<Top>> getTop(TopType type, {int page, TopSubtype subtype});

Future<String> getAnime(int animeId, AnimeRequestType type);

Future<MoreInfo> getAnimeMoreInfo(int animeId);

Future<AnimeEpisodes> getAnimeEpisodes(int animeId, {int episodes = 1});

Future<BuiltList<Article>> getAnimeNews(int animeId);

Future<BuiltList<Picture>> getAnimePictures(int animeId);

Future<BuiltList<Promo>> getAnimeVideos(int animeId);

Future<Stats> getAnimeStats(int animeId);

Future<Forum> getAnimeForum(int animeId);

Future<BuiltList<Recommendation>> getAnimeRecommendations(int animeId);

Future<BuiltList<MangaCharacter>> getMangaCharacters(int mangaId);

Future<BuiltList<Article>> getMangaNews(int mangaId);

Future<BuiltList<Picture>> getMangaPictures(int mangaId);

Future<Stats> getMangaStats(int mangaId);

Future<Forum> getMangaForum(int mangaId);

Future<MoreInfo> getMangaMoreInfo(int mangaId);

Future<BuiltList<Recommendation>> getMangaRecommendations(int mangaId);

Future<BuiltList<Picture>> getPersonPictures(int mangaId);

Future<BuiltList<Picture>> getCharactersPictures(int mangaId);

Future<Season> getSeason(int year, SeasonType season);

Future<Schedule> getSchedule({WeekDay weekday});

Future<GenreList> getGenre(GenreType type, Genre genre, {int page = 1});

Future<Producers> getProducers(int producerId, {int page = 1});

Future<Producers> getMagazines(int magazineId, {int page = 1});

Future<String> getUser(String username, {UserRequestType request});

Future<ProfileResult> getUserProfile(String username);

Future<HistoryResult> getUserHistory(String username, HistoryType historyType);

Work in progress

Api bindings:

  • [x] Top

    • [x] Anime
      • [x] airing
      • [x] upcoming
      • [x] tv
      • [x] movie
      • [x] ova
      • [x] special
      • [x] bypopularity,
      • [x] favorite
    • [x] Manga
      • [x] manga
      • [x] novels
      • [x] oneshots
      • [x] doujin
      • [x] manhwa
      • [x] manhua
      • [x] bypopularity,
      • [x] favorite
    • [x] People
    • [x] Characters
  • [ ] Anime

    • [ ] Character staff
    • [x] Episodes
    • [x] News
    • [x] Pictures
    • [x] Videos
    • [x] Stats
    • [x] Forum
    • [x] More info
    • [x] Recommendations
    • [ ] User updates
  • [ ] Manga

    • [x] Characters
    • [x] News
    • [x] Pictures
    • [x] Stats
    • [x] Forum
    • [x] More info
    • [x] Recommendations
    • [ ] User updates
  • [x] Person

  • [x] Characters

  • [x] Season

  • [ ] Season Archive

  • [ ] Season Later

  • [x] Schedule

  • [x] Genre

    • [x] anime
    • [x] manga
    • [x] genre
  • [x] Producer

  • [x] Magazine

  • [x] User

    • [x] Profile
    • [x] History
    • [x] Friends
    • [x] Anime list
      • [x] all
      • [x] watching
      • [x] completed
      • [x] on hold
      • [x] dropped
      • [x] plan to watch
    • [x] Manga list
      • [x] all
      • [x] reading
      • [x] completed
      • [x] on hold
      • [x] dropped
      • [x] plan to read
  • [ ] Club

  • [ ] Meta

1.0.0 #

  • Initial version, created by Stagehand

example/jikan_dart_example.dart

import 'package:jikan_dart/jikan_dart.dart';

main() async {
  var jikanApi = JikanApi();
  var top = await jikanApi.getTop(TopType.manga, page: 2);
  print('result $top');
}

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  jikan_dart: ^0.9.0

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter pub get

Alternatively, your editor might support pub get or flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:jikan_dart/jikan_dart.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
43
Health:
Code health derived from static analysis. [more]
99
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
92
Overall:
Weighted score of the above. [more]
70
Learn more about scoring.

We analyzed this package on Jul 17, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.4.0
  • pana: 0.12.19

Platforms

Detected platforms: Flutter, web, other

No platform restriction found in primary library package:jikan_dart/jikan_dart.dart.

Health suggestions

Fix lib/src/model/schedule/schedule.g.dart. (-0.50 points)

Analysis of lib/src/model/schedule/schedule.g.dart reported 1 hint:

line 226 col 9: Equality operator == invocation with references of unrelated types.

Fix lib/src/model/user/user_request_type.dart. (-0.50 points)

Analysis of lib/src/model/user/user_request_type.dart reported 1 hint:

line 85 col 1: Prefer using /// for doc comments.

Maintenance suggestions

The package description is too short. (-8 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0 <3.0.0
built_collection ^4.0.0 4.2.2
built_value ^6.1.6 6.7.0
http ^0.12.0 0.12.0+2
Transitive dependencies
async 2.3.0
charcode 1.1.2
collection 1.14.11
fixnum 0.10.9
http_parser 3.1.3
matcher 0.12.5
meta 1.1.7
path 1.6.2
pedantic 1.8.0+1
quiver 2.0.3
source_span 1.5.5
stack_trace 1.9.3
string_scanner 1.0.4
term_glyph 1.1.0
typed_data 1.1.6
Dev dependencies
build_runner ^1.1.2
built_value_generator ^6.1.6
test ^1.0.0

Admin