getAllMangaReadingStatusResponse method
Endpoint used: GET /manga/status
Returns a http response containing all reading statuses of all manga
followed by the user identified by the sessionToken
The sessionToken
can be obtained using the login() function.
Implementation
Future<http.Response> getAllMangaReadingStatusResponse(
String sessionToken, String? status) async {
var unencodedPath =
status == null ? '/manga/status' : '/manga/status?status=$status';
final uri = 'https://$AUTHORITY$unencodedPath';
var response = await http.get(Uri.parse(uri), headers: {
HttpHeaders.contentTypeHeader: 'application/json',
HttpHeaders.authorizationHeader: 'Bearer $sessionToken'
});
return response;
}