target.apidocs.com.google.api.services.youtube.YouTube.PlaylistItems.html Maven / Gradle / Ivy
YouTube.PlaylistItems (YouTube Data API v3 v3-rev20240303-2.0.0)
com.google.api.services.youtube
Class YouTube.PlaylistItems
- java.lang.Object
-
- com.google.api.services.youtube.YouTube.PlaylistItems
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
YouTube.PlaylistItems.Delete
class
YouTube.PlaylistItems.Insert
class
YouTube.PlaylistItems.List
class
YouTube.PlaylistItems.Update
-
Constructor Summary
Constructors
Constructor and Description
PlaylistItems()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
YouTube.PlaylistItems.Delete
delete(String id)
Deletes a resource.
YouTube.PlaylistItems.Insert
insert(List<String> part,
PlaylistItem content)
Inserts a new resource into this collection.
YouTube.PlaylistItems.List
list(List<String> part)
Retrieves a list of resources, possibly filtered.
YouTube.PlaylistItems.Update
update(List<String> part,
PlaylistItem content)
Updates an existing resource.
-
-
Method Detail
-
delete
public YouTube.PlaylistItems.Delete delete(String id)
throws IOException
Deletes a resource.
Create a request for the method "playlistItems.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.PlaylistItems.Insert insert(List<String> part,
PlaylistItem content)
throws IOException
Inserts a new resource into this collection.
Create a request for the method "playlistItems.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 PlaylistItem
- Returns:
- the request
- Throws:
IOException
-
list
public YouTube.PlaylistItems.List list(List<String> part)
throws IOException
Retrieves a list of resources, possibly filtered.
Create a request for the method "playlistItems.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 playlistItem 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 playlistItem resource, the snippet property contains numerous fields,
including the title, description, position, and resourceId properties. As such, if you set
*part=snippet*, the API response will contain all of those properties.
- Returns:
- the request
- Throws:
IOException
-
update
public YouTube.PlaylistItems.Update update(List<String> part,
PlaylistItem content)
throws IOException
Updates an existing resource.
Create a request for the method "playlistItems.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 all of the mutable properties
that are contained in any parts that the parameter value specifies. For example, a
playlist item can specify a start time and end time, which identify the times portion of
the video that should play when users watch the video in the playlist. If your request is
updating a playlist item that sets these values, and the request's part parameter value
includes the contentDetails part, the playlist item's start and end times will be updated
to whatever value the request body specifies. If the request body does not specify values,
the existing start and end times will be removed and replaced with the default settings.
content
- the PlaylistItem
- Returns:
- the request
- Throws:
IOException
Copyright © 2011–2024 Google. All rights reserved.