JEdenManga

Unofficial Manga Eden API client using Java

Project created by on

java jsoup rest

- https://codeberg.org/codingotaku/JEdenManga

About

JEdenManga is an unofficial Manga Eden API client using java see more at https://www.mangaeden.com/api.

Manga List
try { JEdenManga edenManga = new JEdenManga(); // edenManga.setLanguage(Language.Italian); edenManga.setLanguage(Language.English); MangaList allManga = edenManga.getAllManga(); } catch (IOException e) { e.printStackTrace(); }
Where language can be English or Italian, default is English
Returned data:
MangaListObject with

  • page,start,end, and total
  • list of "mangas" which contains the manga's image, title, ID, alias, status, category (genre), last chapter date, and hits.


Manga List splitted in pages
Same as above but returns only 500 manga's informations (from manga X*500 to (X+1)*500, where X is the page argument)
try { JEdenManga edenManga = new JEdenManga(); MangaList first500Manga = edenManga.getMangaListSplited(3); //returns mangas from 1500 to 2000 List<Manga> mangas = first500Manga.getMangas(); } catch (IOException e) { e.printStackTrace(); }


Manga List splitted in pages with variable page size
Same as above but returns only Y manga's informations (from manga X*Y to (X+1)*Y) [25 < Y < 1500]
ie if X is 0 and Y is 30, this will return first 30 list,
if x is 1 and y is 30 this will return mangas 30 to 60
if x is 2 and y is **50** it will return mangas from the range 100 to 150 and so on
x is the page value and y is the number of manga in the page

try { JEdenManga edenManga = new JEdenManga(); MangaList first10Manga = edenManga.getMangaListSplitedRange(1, 30); // returns mangas from 30 to 60 List<Manga> mangas = first10Manga.getMangas(); } catch (IOException e) { e.printStackTrace(); }


Manga info and chapters list
try { JEdenManga edenManga = new JEdenManga(); MangaInfo mangaInfo = edenManga.getMangaInfo("managId."); } catch (IOException e) { e.printStackTrace(); } //OR try { JEdenManga edenManga = new JEdenManga(); MangaList first25Manga = edenManga.getMangaListSplitedRange(0, 25); List<Manga> mangas = first25Manga.getMangas(); MangaInfo mangaInfo = mangas.get(0).getMangaInfo(); } catch (IOException e) { e.printStackTrace(); } Where mangaId is the manga's id you can get with the previous api call
Returned data: all the informations and chapters of the manga.


Chapter pages
try { JEdenManga edenManga = new JEdenManga(); // edenManga.setLanguage(Language.Italian); edenManga.setLanguage(Language.English); ArrayList<Page> chapterPages = edenManga.getChapterPages("chapterId"); } catch (IOException e) { e.printStackTrace(); } //OR try { JEdenManga edenManga = new JEdenManga(); // edenManga.setLanguage(Language.Italian); edenManga.setLanguage(Language.English); MangaList first25Manga = edenManga.getMangaListSplitedRange(0, 25); List<Manga> mangas = first25Manga.getMangas(); MangaInfo mangaInfo = mangas.get(0).getMangaInfo(); ArrayList<ChapterInfo> chapterPages = mangaInfo.getChapters(); ArrayList<Page> pages = chapterPages.get(0).getPages(); } catch (IOException e) { e.printStackTrace(); } Where [chapterId] is the chapter's id you can get with the previous api call.
Returned data: the images's urls and sizes of the chapter.


Login
JEdenManga edenManga = new JEdenManga(); Status status = edenManga.login("userName", "pasword".toCharArray()); System.out.println(status==Status.OK); System.out.println(status==Status.ERROR);
password should be parsed as char array.
Returns Status.OK when successful, Status.ERROR on failure.


Logout
JEdenManga edenManga = new JEdenManga(); Status status = edenManga.logout() System.out.println(status==Status.OK); System.out.println(status==Status.ERROR);
password should be parsed as char array.
Returns Status.OK when successful, Status.ERROR on failure.


MyManga
User should login before calling this api.
Returns all manga saved in the user's mymanga list with all the informations about the manga, latest available chapter and last chapter read by the user.
JEdenManga edenManga = new JEdenManga(); Status status = edenManga.login("userName", "pasword".toCharArray()); if(status==Status.OK) { List myManga = edenManga.myManga(); myManga.forEach(manga->{ System.out.println(manga.getLastChapterRead()); }); }


dependencies <dependencies> <dependency> <groupId>com.google.code.gson</groupId> <artifactId>gson</artifactId> <version>2.8.4</version> </dependency> <!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient --> <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpclient</artifactId> <version>4.5.5</version> </dependency> </dependencies>


My Recent Projects

See All Projects