
target.apidocs.com.google.api.services.youtube.YouTube.Comments.html Maven / Gradle / Ivy
YouTube.Comments (YouTube Data API v3-rev20200320-1.30.9)
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 comment.
YouTube.Comments.Insert
insert(String part,
Comment content)
Creates a reply to an existing comment.
YouTube.Comments.List
list(String part)
Returns a list of comments that match the API request parameters.
YouTube.Comments.MarkAsSpam
markAsSpam(String id)
Expresses the caller's opinion that one or more comments should be flagged as spam.
YouTube.Comments.SetModerationStatus
setModerationStatus(String id,
String moderationStatus)
Sets the moderation status of one or more comments.
YouTube.Comments.Update
update(String part,
Comment content)
Modifies a comment.
-
-
Method Detail
-
delete
public YouTube.Comments.Delete delete(String id)
throws IOException
Deletes a comment.
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
- The id parameter specifies the comment ID for the resource that is being deleted.
- Returns:
- the request
- Throws:
IOException
-
insert
public YouTube.Comments.Insert insert(String part,
Comment content)
throws IOException
Creates a reply to an existing comment. Note: To create a top-level comment, use the
commentThreads.insert method.
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(String part)
throws IOException
Returns a list of comments that match the API request parameters.
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(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
- The id parameter specifies a comma-separated list of IDs of comments that the caller believes should
be classified as spam.
- Returns:
- the request
- Throws:
IOException
-
setModerationStatus
public YouTube.Comments.SetModerationStatus setModerationStatus(String id,
String moderationStatus)
throws IOException
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.
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
- 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.
- Returns:
- the request
- Throws:
IOException
-
update
public YouTube.Comments.Update update(String part,
Comment content)
throws IOException
Modifies a comment.
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–2020 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy