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