
target.apidocs.com.google.api.services.youtube.YouTube.CommentThreads.html Maven / Gradle / Ivy
YouTube.CommentThreads (YouTube Data API v3-rev20200320-1.30.9)
com.google.api.services.youtube
Class YouTube.CommentThreads
- java.lang.Object
-
- com.google.api.services.youtube.YouTube.CommentThreads
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
YouTube.CommentThreads.Insert
class
YouTube.CommentThreads.List
class
YouTube.CommentThreads.Update
-
Constructor Summary
Constructors
Constructor and Description
CommentThreads()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
YouTube.CommentThreads.Insert
insert(String part,
CommentThread content)
Creates a new top-level comment.
YouTube.CommentThreads.List
list(String part)
Returns a list of comment threads that match the API request parameters.
YouTube.CommentThreads.Update
update(String part,
CommentThread content)
Modifies the top-level comment in a comment thread.
-
-
Method Detail
-
insert
public YouTube.CommentThreads.Insert insert(String part,
CommentThread content)
throws IOException
Creates a new top-level comment. To add a reply to an existing comment, use the comments.insert
method instead.
Create a request for the method "commentThreads.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 CommentThread
- Returns:
- the request
- Throws:
IOException
-
list
public YouTube.CommentThreads.List list(String part)
throws IOException
Returns a list of comment threads that match the API request parameters.
Create a request for the method "commentThreads.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 commentThread resource properties
that the API response will include.
- Returns:
- the request
- Throws:
IOException
-
update
public YouTube.CommentThreads.Update update(String part,
CommentThread content)
throws IOException
Modifies the top-level comment in a comment thread.
Create a request for the method "commentThreads.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 specifies a comma-separated list of commentThread resource 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 CommentThread
- Returns:
- the request
- Throws:
IOException
Copyright © 2011–2020 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy