| Modifier and Type | Class and Description |
|---|---|
class |
YouTube.Comments.Delete |
class |
YouTube.Comments.Insert |
class |
YouTube.Comments.List |
class |
YouTube.Comments.MarkAsSpam |
class |
YouTube.Comments.SetModerationStatus |
class |
YouTube.Comments.Update |
| Constructor and Description |
|---|
Comments() |
| Modifier and Type | Method and Description |
|---|---|
YouTube.Comments.Delete |
delete(String id)
Deletes a resource.
|
YouTube.Comments.Insert |
insert(List<String> part,
Comment content)
Inserts a new resource into this collection.
|
YouTube.Comments.List |
list(List<String> part)
Retrieves a list of resources, possibly filtered.
|
YouTube.Comments.MarkAsSpam |
markAsSpam(List<String> id)
Expresses the caller's opinion that one or more comments should be flagged as spam.
|
YouTube.Comments.SetModerationStatus |
setModerationStatus(List<String> id,
String moderationStatus)
Sets the moderation status of one or more comments.
|
YouTube.Comments.Update |
update(List<String> part,
Comment content)
Updates an existing resource.
|
public YouTube.Comments.Delete delete(String id) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.id - IOExceptionpublic YouTube.Comments.Insert insert(List<String> part, Comment content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.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.content - the CommentIOExceptionpublic YouTube.Comments.List list(List<String> part) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.part - The *part* parameter specifies a comma-separated list of one or more comment resource properties
that the API response will include.IOExceptionpublic YouTube.Comments.MarkAsSpam markAsSpam(List<String> id) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.id - Flags the comments with the given IDs as spam in the caller's opinion.IOExceptionpublic YouTube.Comments.SetModerationStatus setModerationStatus(List<String> id, String moderationStatus) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.id - Modifies the moderation status of the comments with the given IDsmoderationStatus - Specifies the requested moderation status. Note, comments can be in statuses, which are not
available through this call. For example, this call does not allow to mark a comment as
'likely spam'. Valid values: MODERATION_STATUS_PUBLISHED,
MODERATION_STATUS_HELD_FOR_REVIEW, MODERATION_STATUS_REJECTED.IOExceptionpublic YouTube.Comments.Update update(List<String> part, Comment content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.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.content - the CommentIOExceptionCopyright © 2011–2021 Google. All rights reserved.