Unofficial Manga Eden API client wrapper with java. More details at https://www.mangaeden.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
codingotaku 46a9812ad6 module changes 2 years ago
docs created docs folder 2 years ago
src module changes 2 years ago
.classpath module changes 2 years ago
.gitignore Fixed MangaInfo.getImageUrl() 3 years ago
.project Initial commit 3 years ago
LICENSE Update LICENSE 3 years ago
README.md Initial commit 3 years ago
pom.xml module changes 2 years ago

README.md

JEdenManga

Unofficial Manga Eden API client for java see more at https://www.mangaeden.com/api

Currently this api has limited functionality, we wont be able to update the progress with manga eden.

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 , 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> 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>