followCustomList method
Endpoint used: POST /list/{id}/follow
Makes the user identified by the sessionToken
follow
a custom list identified by it's listId
and returns a
Result
class instance containing info on whether the request was successful.
Implementation
Future<Result> followCustomList(String sessionToken, String listId) async {
var response = await followCustomListResponse(sessionToken, listId);
try {
return Result.fromJson(jsonDecode(response.body));
} on Exception {
throw MangadexServerException(jsonDecode(response.body));
}
}