class Comments extends Resource (View source)

The "comments" collection of methods.

Typical usage is:

 $driveService = new Google\Service\Drive(...);
 $comments = $driveService->comments;

Methods

create(string $fileId, Comment $postBody, array $optParams = [])

Creates a comment on a file. (comments.create)

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

Deletes a comment. (comments.delete)

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

Gets a comment by ID. (comments.get)

listComments(string $fileId, array $optParams = [])

Lists a file's comments. (comments.listComments)

update(string $fileId, string $commentId, Comment $postBody, array $optParams = [])

Updates a comment with patch semantics. (comments.update)

Details

Comment create(string $fileId, Comment $postBody, array $optParams = [])

Creates a comment on a file. (comments.create)

Parameters

string $fileId

The ID of the file.

Comment $postBody
array $optParams

Optional parameters.

Return Value

Comment

Exceptions

Exception

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

Deletes a comment. (comments.delete)

Parameters

string $fileId

The ID of the file.

string $commentId

The ID of the comment.

array $optParams

Optional parameters.

Exceptions

Exception

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

Gets a comment by ID. (comments.get)

Parameters

string $fileId

The ID of the file.

string $commentId

The ID of the comment.

array $optParams

Optional parameters.

Return Value

Comment

Exceptions

Exception

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

Lists a file's comments. (comments.listComments)

Parameters

string $fileId

The ID of the file.

array $optParams

Optional parameters.

Return Value

CommentList

Exceptions

Exception

Comment update(string $fileId, string $commentId, Comment $postBody, array $optParams = [])

Updates a comment with patch semantics. (comments.update)

Parameters

string $fileId

The ID of the file.

string $commentId

The ID of the comment.

Comment $postBody
array $optParams

Optional parameters.

Return Value

Comment

Exceptions

Exception