Modifier and Type | Class and Description |
---|---|
class |
YouTube.Channels.List |
class |
YouTube.Channels.Update |
Constructor and Description |
---|
YouTube.Channels() |
Modifier and Type | Method and Description |
---|---|
YouTube.Channels.List |
list(String part)
Returns a collection of zero or more channel resources that match the request criteria.
|
YouTube.Channels.Update |
update(String part,
Channel content)
Updates a channel's metadata.
|
public YouTube.Channels.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 channel resource properties that
the API response will include. The part names that you can include in the parameter value
are id, snippet, contentDetails, statistics, topicDetails, and invideoPromotion.
If the
parameter identifies a property that contains child properties, the child properties will
be included in the response. For example, in a channel resource, the contentDetails
property contains other properties, such as the uploads properties. As such, if you set
part=contentDetails, the API response will also contain all of those nested properties.IOException
public YouTube.Channels.Update update(String part, Channel content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.part
- The part parameter serves two purposes in this operation. It identifies the properties that the
write operation will set as well as the properties that the API response will include.
The
part names that you can include in the parameter value are id and invideoPromotion.
Note
that this method will override the existing values for all of the mutable properties that
are contained in any parts that the parameter value specifies.content
- the Channel
IOException