getUserFollowedManga method
Endpoint used: GET /manga/{id}/aggregate
Returns a UserFollowedManga
class instance of all the Manga the user follows,
the sessionToken
is the session token obtained using the login() function
Implementation
Future<UserFollowedManga> getUserFollowedManga(String sessionToken,
{int? offset, int? limit}) async {
var response = await getUserFollowedMangaResponse(sessionToken,
offset: offset, limit: limit);
try {
return UserFollowedManga.fromJson(jsonDecode(response.body));
} on Exception {
throw MangadexServerException(jsonDecode(response.body));
}
}