Modifier and Type | Class and Description |
---|---|
class |
YouTube.Playlists.Delete |
class |
YouTube.Playlists.Insert |
class |
YouTube.Playlists.List |
class |
YouTube.Playlists.Update |
Constructor and Description |
---|
YouTube.Playlists() |
Modifier and Type | Method and Description |
---|---|
YouTube.Playlists.Delete |
delete(String id)
Deletes a playlist.
|
YouTube.Playlists.Insert |
insert(String part,
Playlist content)
Creates a playlist.
|
YouTube.Playlists.List |
list(String part)
Returns a collection of playlists that match the API request parameters.
|
YouTube.Playlists.Update |
update(String part,
Playlist content)
Modifies a playlist.
|
public YouTube.Playlists.Delete delete(String id) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.id
- The id parameter specifies the YouTube playlist ID for the playlist that is being deleted. In a
playlist resource, the id property specifies the playlist's ID.IOException
public YouTube.Playlists.Insert insert(String part, Playlist 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 snippet and status.content
- the Playlist
IOException
public YouTube.Playlists.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 playlist resource properties that
the API response will include. The part names that you can include in the parameter value
are id, snippet, status, and contentDetails.
If the parameter identifies a property that
contains child properties, the child properties will be included in the response. For
example, in a playlist resource, the snippet property contains properties like author,
title, description, tags, and timeCreated. As such, if you set part=snippet, the API
response will contain all of those properties.IOException
public YouTube.Playlists.Update update(String part, Playlist 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 snippet and status.
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. For example, a playlist's
privacy setting is contained in the status part. As such, if your request is updating a
private playlist, and the request's part parameter value includes the status part, the
playlist's privacy setting will be updated to whatever value the request body specifies.
If the request body does not specify a value, the existing privacy setting will be removed
and the playlist will revert to the default privacy setting.content
- the Playlist
IOException