checkIfUserFollowsMangaResponse method

Future<Response> checkIfUserFollowsMangaResponse(
  1. String sessionToken,
  2. String mangaId
)
inherited

Endpoint used: GET /user/follows/manga/{id}

Simply check if the user identified by the current session sessionToken follows a manga with mangaId or uuid and return a http response

Implementation

Future<http.Response> checkIfUserFollowsMangaResponse(
    String sessionToken, String mangaId) async {
  final unencodedPath = '/user/follows/manga/$mangaId';
  final uri = 'https://$AUTHORITY$unencodedPath';
  var response = await http.get(Uri.parse(uri), headers: {
    HttpHeaders.contentTypeHeader: 'application/json',
    HttpHeaders.authorizationHeader: 'Bearer $sessionToken'
  });
  return response;
}