getIllustComments method
获取插画的评论
illustId
- 插画ID
Implementation
Future<Comments> getIllustComments(
int illustId, {
required CancelToken cancelToken,
}) async {
final response = await _httpClient.get<String>(
'/v3/illust/comments',
queryParameters: {
'illust_id': illustId,
},
cancelToken: cancelToken,
);
final data = Comments.fromJson(jsonDecode(response.data!));
return data;
}