target.apidocs.com.google.api.services.youtube.YouTube.Playlists.html Maven / Gradle / Ivy
YouTube.Playlists (YouTube Data API v3 v3-rev20240417-2.0.0)
com.google.api.services.youtube
Class YouTube.Playlists
- java.lang.Object
-
- com.google.api.services.youtube.YouTube.Playlists
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
YouTube.Playlists.Delete
class
YouTube.Playlists.Insert
class
YouTube.Playlists.List
class
YouTube.Playlists.Update
-
Constructor Summary
Constructors
Constructor and Description
Playlists()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
YouTube.Playlists.Delete
delete(String id)
Deletes a resource.
YouTube.Playlists.Insert
insert(List<String> part,
Playlist content)
Inserts a new resource into this collection.
YouTube.Playlists.List
list(List<String> part)
Retrieves a list of resources, possibly filtered.
YouTube.Playlists.Update
update(List<String> part,
Playlist content)
Updates an existing resource.
-
-
Method Detail
-
delete
public YouTube.Playlists.Delete delete(String id)
throws IOException
Deletes a resource.
Create a request for the method "playlists.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.Playlists.Insert insert(List<String> part,
Playlist content)
throws IOException
Inserts a new resource into this collection.
Create a request for the method "playlists.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 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.
content
- the Playlist
- Returns:
- the request
- Throws:
IOException
-
list
public YouTube.Playlists.List list(List<String> part)
throws IOException
Retrieves a list of resources, possibly filtered.
Create a request for the method "playlists.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 playlist resource properties
that the API response will include. 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.
- Returns:
- the request
- Throws:
IOException
-
update
public YouTube.Playlists.Update update(List<String> part,
Playlist content)
throws IOException
Updates an existing resource.
Create a request for the method "playlists.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 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.
Note that this method will override the existing values for mutable properties that are
contained in any parts that the request body specifies. For example, a playlist's
description is contained in the snippet part, which must be included in the request body.
If the request does not specify a value for the snippet.description property, the
playlist's existing description will be deleted.
content
- the Playlist
- Returns:
- the request
- Throws:
IOException
Copyright © 2011–2024 Google. All rights reserved.