Implementation shikimori api (https://shikimori.one/api/doc) for Java.
To use this library you need to add current repository to your project (example in maven):
<dependencies>
<dependency>
<groupId>com.yauhescha</groupId>
<artifactId>javashiki</artifactId>
<version>2.2.0</version>
</dependency>
</dependencies>
Also you need to add library in dependencies:
<repositories>
<repository>
<id>javashiki-mvn-repo</id>
<url>https://raw.github.com/Yauhescha/javashiki/mvn-repo/</url>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>
</repository>
</repositories>
AuthShikimori auth = new AuthShikimori(applicationName, applicationClientId, applicationClientSecret, applicationRedirectUri);
// or = new AuthShikimori(); to use Api Test application
String linkToAuthorizationCode = auth.getUrlToAuthorizationCode(); // use this to get authorization code
auth.authorize(scanner.nextLine());
UserInfo userInfo = auth.getUserApi().whoIAm();
System.out.printf(userInfo.toString());
AnimeApi animeApi = auth.getAnimeApi();
AnimeSearchParameters parameters = AnimeSearchParameters
.builder()
.limit(5)
.search("naruto")
.build();
List<Anime> animes = animeApi.getAnimes(parameters);
animes.forEach(anime -> System.out.println("Anime with name '" + anime.getName() + "' has '" + anime.getEpisodes() + "' episodes"));
- GET /api/achievements
- POST /api/appears
- GET /api/animes
- GET /api/animes/:id
- GET /api/animes/:id/roles
- GET /api/animes/:id/similar
- GET /api/animes/:id/related
- GET /api/animes/:id/screenshots
- GET /api/animes/:id/franchise
- GET /api/animes/:id/external_links
- GET /api/animes/:id/topics
- GET /api/bans
- GET /api/calendar
- GET /api/characters/:id
- GET /api/characters/search
- GET /api/constants/anime
- GET /api/constants/manga
- GET /api/constants/user_rate
- GET /api/constants/club
- GET /api/constants/smileys
- GET /api/genres
- GET /api/forums
- GET /api/stats/active_users
- GET /api/studios
- GET /api/publishers
- POST /api/user_images
- GET /api/people/:id
- GET /api/people/search
- GET /api/mangas
- GET /api/mangas/:id
- GET /api/mangas/:id/roles
- GET /api/mangas/:id/similar
- GET /api/mangas/:id/related
- GET /api/mangas/:id/franchise
- GET /api/mangas/:id/external_links
- GET /api/mangas/:id/topics
- GET /api/users
- GET /api/users/:id
- GET /api/users/:id/info
- GET /api/users/whoami
- GET /api/users/:id/friends
- GET /api/users/:id/clubs
- GET /api/users/:id/anime_rates
- GET /api/users/:id/manga_rates
- GET /api/users/:id/favourites
- GET /api/users/:id/messages
- GET /api/users/:id/unread_messages
- GET /api/users/:id/history
- GET /api/users/:id/bans
- DELETE /api/user_rates/:type/cleanup
- DELETE /api/user_rates/:type/reset
- GET /api/clubs
- PATCH /api/clubs/:id
- PUT /api/clubs/:id
- GET /api/clubs/:id
- GET /api/clubs/:id/animes
- GET /api/clubs/:id/mangas
- GET /api/clubs/:id/ranobe
- GET /api/clubs/:id/characters
- GET /api/clubs/:id/members
- GET /api/clubs/:id/images
- POST /api/clubs/:id/join
- POST /api/clubs/:id/leave
- GET /api/comments/:id
- GET /api/comments
- POST /api/comments
- PATCH /api/comments/:id
- PUT /api/comments/:id
- DELETE /api/comments/:id
- GET /api/dialogs
- GET /api/dialogs/:id
- DELETE /api/dialogs/:id
- POST /api/favorites/:linked_type/:linked_id(/:kind)
- DELETE /api/favorites/:linked_type/:linked_id
- POST /api/favorites/:id/reorder
- POST /api/friends/:id
- DELETE /api/friends/:id
- GET /api/messages/:id
- POST /api/messages
- PATCH /api/messages/:id
- PUT /api/messages/:id
- DELETE /api/messages/:id
- POST /api/messages/mark_read
- POST /api/messages/read_all
- POST /api/messages/delete_all
- GET /api/ranobe
- GET /api/ranobe/:id
- GET /api/ranobe/:id/roles
- GET /api/ranobe/:id/similar
- GET /api/ranobe/:id/related
- GET /api/ranobe/:id/franchise
- GET /api/ranobe/:id/external_links
- GET /api/ranobe/:id/topics
- GET /api/styles/:id
- POST /api/styles/preview
- POST /api/styles
- PATCH /api/styles/:id
- PUT /api/styles/:id
- GET /api/topics
- GET /api/topics/updates
- GET /api/topics/hot
- GET /api/topics/:id
- POST /api/topics
- PATCH /api/topics/:id
- PUT /api/topics/:id
- DELETE /api/topics/:id
- GET /api/animes/:anime_id/videos
- POST /api/animes/:anime_id/videos
- DELETE /api/animes/:anime_id/videos/:id