Class Google_Service_YouTube_Comments_Resource
The "comments" collection of methods. Typical usage is:
$youtubeService = new Google_Service_YouTube(...);
$comments = $youtubeService->comments;
-
Google_Service_Resource
-
Google_Service_YouTube_Comments_Resource
Located at YouTube.php
Methods summary
public
|
#
delete( string $id, array $optParams = array() )
Deletes a comment. (comments.delete)
Deletes a comment. (comments.delete)
Parameters
- $id
- The id parameter specifies the comment ID for the resource that is being
deleted.
- $optParams
- Optional parameters.
|
public
Google_Service_YouTube_Comment
|
#
insert( string $part, Google_Service_YouTube_Comment $postBody, array $optParams = array() )
Creates a reply to an existing comment. Note: To create a top-level comment,
use the commentThreads.insert method. (comments.insert)
Creates a reply to an existing comment. Note: To create a top-level comment,
use the commentThreads.insert method. (comments.insert)
Parameters
- $part
- The part parameter identifies the properties that the API response will include.
Set the parameter value to snippet. The snippet part has a quota cost of 2
units.
- $postBody
- $optParams
- Optional parameters.
Returns
|
public
|
#
markAsSpam( string $id, array $optParams = array() )
Expresses the caller's opinion that one or more comments should be flagged as
spam. (comments.markAsSpam)
Expresses the caller's opinion that one or more comments should be flagged as
spam. (comments.markAsSpam)
Parameters
- $id
- The id parameter specifies a comma-separated list of IDs of comments that the
caller believes should be classified as spam.
- $optParams
- Optional parameters.
|
public
|
#
setModerationStatus( string $id, string $moderationStatus, array $optParams = array() )
Sets the moderation status of one or more comments. The API request must be
authorized by the owner of the channel or video associated with the comments.
(comments.setModerationStatus)
Sets the moderation status of one or more comments. The API request must be
authorized by the owner of the channel or video associated with the comments.
(comments.setModerationStatus)
Parameters
- $id
- The id parameter specifies a comma-separated list of IDs that identify the
comments for which you are updating the moderation status.
- $moderationStatus
- Identifies the new moderation status of the specified comments.
- $optParams
- Optional parameters.
Opt_param
bool banAuthor The banAuthor parameter lets you indicate that you want to
automatically reject any additional comments written by the comment's author.
Set the parameter value to true to ban the author. Note: This parameter is only
valid if the moderationStatus parameter is also set to rejected.
|
public
Google_Service_YouTube_Comment
|
#
update( string $part, Google_Service_YouTube_Comment $postBody, array $optParams = array() )
Modifies a comment. (comments.update)
Modifies a comment. (comments.update)
Parameters
- $part
- The part parameter identifies the properties that the API response will include.
You must at least include the snippet part in the parameter value since that
part contains all of the properties that the API request can update.
- $postBody
- $optParams
- Optional parameters.
Returns
|