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, *, extra_parameters=None)[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, extra_parameters=None)[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, extra_parameters=None)[source]#

Delete the given reply.

Parameters:
Returns:

Nothing.

Return type:

None

patch_reply(json_body, *, comment_base_id, reply_id, extra_parameters=None)[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, extra_parameters=None)[source]#

Get the edits of a reply.

Parameters:
Returns:

A list of edits, sorted from newest to oldest.

Return type:

Sequence[CommentReplyEdit]

approve_reply(*, comment_base_id, reply_id, extra_parameters=None)[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, extra_parameters=None)[source]#

Update the approval status of a reply.

Parameters:
Returns:

The just updated reply.

Return type:

ExtendedNonDeletedCommentReply | DeletedCommentReply