getCommentReplies method

Future<Comments> getCommentReplies(
  1. int commentId, {
  2. required CancelToken cancelToken,
})

获取评论的回复
commentId - 评论ID

Implementation

Future<Comments> getCommentReplies(
  int commentId, {
  required CancelToken cancelToken,
}) async {
  final response = await _httpClient.get<String>(
    '/v2/illust/comment/replies',
    queryParameters: {
      'comment_id': commentId,
    },
    cancelToken: cancelToken,
  );
  final data = Comments.fromJson(jsonDecode(response.data!));
  return data;
}