class Comments extends Resource (View source)

The "comments" collection of methods.

Typical usage is:

 $bloggerService = new Google\Service\Blogger(...);
 $comments = $bloggerService->comments;

Methods

approve(string $blogId, string $postId, string $commentId, array $optParams = [])

Marks a comment as not spam by blog id, post id and comment id.

delete(string $blogId, string $postId, string $commentId, array $optParams = [])

Deletes a comment by blog id, post id and comment id. (comments.delete)

get(string $blogId, string $postId, string $commentId, array $optParams = [])

Gets a comment by id. (comments.get)

listComments(string $blogId, string $postId, array $optParams = [])

Lists comments. (comments.listComments)

listByBlog(string $blogId, array $optParams = [])

Lists comments by blog. (comments.listByBlog)

markAsSpam(string $blogId, string $postId, string $commentId, array $optParams = [])

Marks a comment as spam by blog id, post id and comment id.

removeContent(string $blogId, string $postId, string $commentId, array $optParams = [])

Removes the content of a comment by blog id, post id and comment id.

Details

Comment approve(string $blogId, string $postId, string $commentId, array $optParams = [])

Marks a comment as not spam by blog id, post id and comment id.

(comments.approve)

Parameters

string $blogId
string $postId
string $commentId
array $optParams

Optional parameters.

Return Value

Comment

Exceptions

Exception

delete(string $blogId, string $postId, string $commentId, array $optParams = [])

Deletes a comment by blog id, post id and comment id. (comments.delete)

Parameters

string $blogId
string $postId
string $commentId
array $optParams

Optional parameters.

Exceptions

Exception

Comment get(string $blogId, string $postId, string $commentId, array $optParams = [])

Gets a comment by id. (comments.get)

Parameters

string $blogId
string $postId
string $commentId
array $optParams

Optional parameters.

Return Value

Comment

Exceptions

Exception

CommentList listComments(string $blogId, string $postId, array $optParams = [])

Lists comments. (comments.listComments)

Parameters

string $blogId
string $postId
array $optParams

Optional parameters.

Return Value

CommentList

Exceptions

Exception

CommentList listByBlog(string $blogId, array $optParams = [])

Lists comments by blog. (comments.listByBlog)

Parameters

string $blogId
array $optParams

Optional parameters.

Return Value

CommentList

Exceptions

Exception

Comment markAsSpam(string $blogId, string $postId, string $commentId, array $optParams = [])

Marks a comment as spam by blog id, post id and comment id.

(comments.markAsSpam)

Parameters

string $blogId
string $postId
string $commentId
array $optParams

Optional parameters.

Return Value

Comment

Exceptions

Exception

Comment removeContent(string $blogId, string $postId, string $commentId, array $optParams = [])

Removes the content of a comment by blog id, post id and comment id.

(comments.removeContent)

Parameters

string $blogId
string $postId
string $commentId
array $optParams

Optional parameters.

Return Value

Comment

Exceptions

Exception