addMangaToCustomList method
Endpoint used: POST /manga/{id}/list/{id}
Adds a manga identified by it's mangaId
/ UUID to a custom list identified by
it's listId
if the user identified by the sessionToken
has the permission to do so and returns a Result
class instance containing info on whether the request was successful.
Implementation
Future<Result> addMangaToCustomList(
String sessionToken, String mangaId, String listId) async {
var response =
await addMangaToCustomListResponse(sessionToken, mangaId, listId);
try {
return Result.fromJson(jsonDecode(response.body));
} on Exception {
throw MangadexServerException(jsonDecode(response.body));
}
}