target.apidocs.com.google.api.services.youtube.YouTube.Comments.html Maven / Gradle / Ivy
YouTube.Comments (YouTube Data API v3 v3-rev20240417-2.0.0)
com.google.api.services.youtube
Class YouTube.Comments
- java.lang.Object
-
- com.google.api.services.youtube.YouTube.Comments
-
-
Nested Class Summary
Nested Classes
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 Summary
Constructors
Constructor and Description
Comments()
-
Method Summary
All Methods Instance Methods Concrete Methods
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.
-
-
Method Detail
-
delete
public YouTube.Comments.Delete delete(String id)
throws IOException
Deletes a resource.
Create a request for the method "comments.delete".
This request holds the parameters needed by the youtube server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
id
-
- Returns:
- the request
- Throws:
IOException
-
insert
public YouTube.Comments.Insert insert(List<String> part,
Comment content)
throws IOException
Inserts a new resource into this collection.
Create a request for the method "comments.insert".
This request holds the parameters needed by the youtube server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- 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.
content
- the Comment
- Returns:
- the request
- Throws:
IOException
-
list
public YouTube.Comments.List list(List<String> part)
throws IOException
Retrieves a list of resources, possibly filtered.
Create a request for the method "comments.list".
This request holds the parameters needed by the youtube server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
part
- The *part* parameter specifies a comma-separated list of one or more comment resource properties
that the API response will include.
- Returns:
- the request
- Throws:
IOException
-
markAsSpam
public YouTube.Comments.MarkAsSpam markAsSpam(List<String> id)
throws IOException
Expresses the caller's opinion that one or more comments should be flagged as spam.
Create a request for the method "comments.markAsSpam".
This request holds the parameters needed by the youtube server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
id
- Flags the comments with the given IDs as spam in the caller's opinion.
- Returns:
- the request
- Throws:
IOException
-
setModerationStatus
public YouTube.Comments.SetModerationStatus setModerationStatus(List<String> id,
String moderationStatus)
throws IOException
Sets the moderation status of one or more comments.
Create a request for the method "comments.setModerationStatus".
This request holds the parameters needed by the youtube server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
id
- Modifies the moderation status of the comments with the given IDs
moderationStatus
- 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: 'heldForReview', 'published' or 'rejected'.
- Returns:
- the request
- Throws:
IOException
-
update
public YouTube.Comments.Update update(List<String> part,
Comment content)
throws IOException
Updates an existing resource.
Create a request for the method "comments.update".
This request holds the parameters needed by the youtube server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- 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.
content
- the Comment
- Returns:
- the request
- Throws:
IOException
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2024 Weber Informatics LLC | Privacy Policy