getFooterCommentVersions method

Future<MultiEntityResult<CommentVersion>> getFooterCommentVersions({
  1. required int id,
  2. String? bodyFormat,
  3. String? cursor,
  4. int? limit,
  5. String? sort,
})

Retrieves the versions of the specified footer comment.

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

Implementation

Future<MultiEntityResult<CommentVersion>> getFooterCommentVersions(
    {required int id,
    String? bodyFormat,
    String? cursor,
    int? limit,
    String? sort}) async {
  return MultiEntityResult.fromJson(
    await _client.send(
      'get',
      'footer-comments/{id}/versions',
      pathParameters: {
        'id': '$id',
      },
      queryParameters: {
        if (bodyFormat != null) 'body-format': bodyFormat,
        if (cursor != null) 'cursor': cursor,
        if (limit != null) 'limit': '$limit',
        if (sort != null) 'sort': sort,
      },
    ),
    reviver: (v) => CommentVersion.fromJson(v as Map<String, Object?>),
  );
}