getInlineCommentById method

Future<InlineCommentModel> getInlineCommentById({
  1. required int commentId,
  2. String? bodyFormat,
  3. int? version,
})

Retrieves an inline comment by id

Permissions required: Permission to view the content of the page or blogpost and its corresponding space.

Implementation

Future<InlineCommentModel> getInlineCommentById(
    {required int commentId, String? bodyFormat, int? version}) async {
  return InlineCommentModel.fromJson(await _client.send(
    'get',
    'inline-comments/{comment-id}',
    pathParameters: {
      'comment-id': '$commentId',
    },
    queryParameters: {
      if (bodyFormat != null) 'body-format': bodyFormat,
      if (version != null) 'version': '$version',
    },
  ));
}