removeMangaFromCustomListResponse method

Future<Response> removeMangaFromCustomListResponse(
  1. String sessionToken,
  2. String mangaId,
  3. String listId
)
inherited

Endpoint used: DELETE /manga/{id}/list/{id}

Removes 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 http response.

Implementation

Future<http.Response> removeMangaFromCustomListResponse(
  String sessionToken,
  String mangaId,
  String listId,
) async {
  var payload = {
    HttpHeaders.authorizationHeader: 'Bearer $sessionToken',
    HttpHeaders.contentTypeHeader: 'application/json',
  };
  var unencodedPath = '/manga/$mangaId/list/$listId';
  final uri = 'https://$AUTHORITY$unencodedPath';
  return await http.delete(Uri.parse(uri), headers: payload);
}