Comments
class Comments extends Resource (View source)
The "comments" collection of methods.
Typical usage is:
$youtubeService = new Google\Service\YouTube(...);
$comments = $youtubeService->comments;
Methods
Deletes a resource. (comments.delete)
Retrieves a list of resources, possibly filtered. (comments.listComments)
Expresses the caller's opinion that one or more comments should be flagged as spam. (comments.markAsSpam)
Sets the moderation status of one or more comments.
Details
delete(string $id, array $optParams = [])
Deletes a resource. (comments.delete)
Comment
insert(string|array $part, Comment $postBody, array $optParams = [])
Inserts a new resource into this collection. (comments.insert)
CommentListResponse
listComments(string|array $part, array $optParams = [])
Retrieves a list of resources, possibly filtered. (comments.listComments)
markAsSpam(string|array $id, array $optParams = [])
Expresses the caller's opinion that one or more comments should be flagged as spam. (comments.markAsSpam)
setModerationStatus(string|array $id, string $moderationStatus, array $optParams = [])
Sets the moderation status of one or more comments.
(comments.setModerationStatus)