CommentService#

class CommentService[source]#

Methods

create_base

Create a new comment base, or retrieve an existing one.

create_reply

Add a reply to a comment base.

delete_reply

Delete the given reply.

patch_reply

Update the content of a reply.

get_all_reply_edits

Get the edits of a reply.

approve_reply

Update the approval status of a reply.

disapprove_reply

Update the approval status of a reply.

create_base(json_body)[source]#

Create a new comment base, or retrieve an existing one.

Parameters:
Returns:

The just created comment base.

Return type:

InlineFeedbackCommentBaseWithExtendedReplies | GeneralFeedbackCommentBaseWithExtendedReplies

create_reply(json_body, *, comment_base_id)[source]#

Add a reply to a comment base.

Parameters:
Returns:

The just created reply.

Return type:

ExtendedNonDeletedCommentReply | DeletedCommentReply

delete_reply(*, comment_base_id, reply_id)[source]#

Delete the given reply.

Parameters:
Returns:

Nothing.

Return type:

None

patch_reply(json_body, *, comment_base_id, reply_id)[source]#

Update the content of a reply.

Parameters:
Returns:

The just updated reply.

Return type:

ExtendedNonDeletedCommentReply | DeletedCommentReply

get_all_reply_edits(*, comment_base_id, reply_id, page_size=20)[source]#

Get the edits of a reply.

Parameters:
  • comment_base_id (int) – The base of the given reply.

  • reply_id (int) – The id of the reply for which you want to get the edits.

  • page_size (int) – The size of a single page, maximum is 50.

  • self (CommentService[AuthenticatedClient]) –

Returns:

A list of edits, sorted from newest to oldest.

Return type:

Response[CommentReplyEdit]

approve_reply(*, comment_base_id, reply_id)[source]#

Update the approval status of a reply.

Parameters:
Returns:

The just updated reply.

Return type:

ExtendedNonDeletedCommentReply | DeletedCommentReply

disapprove_reply(*, comment_base_id, reply_id)[source]#

Update the approval status of a reply.

Parameters:
Returns:

The just updated reply.

Return type:

ExtendedNonDeletedCommentReply | DeletedCommentReply