-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
readme.bbcode
63 lines (49 loc) · 2.14 KB
/
readme.bbcode
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
[center][url=https://github.com/KatsuteDev/Mal4J#readme][img]https://raw.githubusercontent.com/KatsuteDev/Mal4J/main/assets/banner.png[/img][/url][/center]
[center][size=200][url=https://github.com/KatsuteDev/Mal4J#readme]Mal4J - MyAnimeList Java API[/url][/size][/center]
Mal4J is a Java wrapper for the MyAnimeList REST API. This library is compatible with Java 8+, Java 9+ modules, and Android.
[size=250][u]Features[/u][/size]
[size=150]Search Queries[/size]
Find Anime and Manga by search, ranking, season, and suggestions.
[code]
MyAnimeList mal = MyAnimeList.withClientID("");
List<AnimePreview> search =
mal.getAnime()
.withQuery("さくら荘のペットな彼女")
.withLimit(1)
.withOffset(1)
.includeNSFW(false)
.search();
[/code]
[size=150]Anime and Manga Lists[/size]
Read and edit your Anime and Manga listings.
[code]
MyAnimeList mal = MyAnimeList.withToken("");
MangaListStatus status =
mal.updateMangaListing(28107)
.status(MangaStatus.Reading)
.volumesRead(7)
.chaptersRead(2)
.rereading(false)
.priority(Priority.High)
.timesReread(0)
.rereadValue(RereadValue.VeryHigh)
.tags("tags", "more tags")
.comments("comments")
.update();
[/code]
[size=150]Everything Else[/size]
[b]All[/b] information provided in the [url=https://myanimelist.net/apiconfig/references/api/v2]MyAnimeList API[/url] including Anime, Manga, forums, genres, pictures, statistics, and characters, are accessible in this library.
[code]
MyAnimeList mal = MyAnimeList.withClientID("");
Anime anime = mal.getAnime(13759);
String ja = anime.getAlternativeTitles().getJapanese();
Genre[] genres = anime.getGenres();
RelatedAnime[] relatedAnime = anime.getRelatedAnime();
AnimeRecommendation[] recs = anime.getRecommendations();
OpeningTheme[] op = anime.getOpeningThemes();
Video[] PV = anime.getVideos();
List<Character> characters = anime.getCharacters().search();
Character character = mal.getCharacter(61371);
Person person = mal.getPerson(10765);
[/code]
[center][size=200][url=https://github.com/KatsuteDev/Mal4J#readme]View on GitHub[/url][/size][/center]