getUserFeed method

Future<UserFeed> getUserFeed(
  1. String sessionToken
)
inherited

Endpoint used: GET /user/follows/manga/feed

Gets the current User Feed for the user identified by sessionToken and returns the data in a UserFeed class instance.

Implementation

Future<UserFeed> getUserFeed(String sessionToken) async {
  var response = await getUserFeedResponse(sessionToken);
  try {
    return UserFeed.fromJson(jsonDecode(response.body));
  } on Exception {
    throw MangadexServerException(jsonDecode(response.body));
  }
}