Class PlaylistsResource
The "playlists" collection of methods.
Inherited Members
Namespace: Google.Apis.YouTube.v3
Assembly: Google.Apis.YouTube.v3.dll
Syntax
public class PlaylistsResourceConstructors
PlaylistsResource(IClientService)
Constructs a new resource.
Declaration
public PlaylistsResource(IClientService service)Parameters
| Type | Name | Description | 
|---|---|---|
| IClientService | service | 
Methods
Delete(string)
Deletes a resource.
Declaration
public virtual PlaylistsResource.DeleteRequest Delete(string id)Parameters
| Type | Name | Description | 
|---|---|---|
| string | id | 
 | 
Returns
| Type | Description | 
|---|---|
| PlaylistsResource.DeleteRequest | 
Insert(Playlist, Repeatable<string>)
Inserts a new resource into this collection.
Declaration
public virtual PlaylistsResource.InsertRequest Insert(Playlist body, Repeatable<string> part)Parameters
| Type | Name | Description | 
|---|---|---|
| Playlist | body | The body of the request. | 
| Repeatable<string> | 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. | 
Returns
| Type | Description | 
|---|---|
| PlaylistsResource.InsertRequest | 
List(Repeatable<string>)
Retrieves a list of resources, possibly filtered.
Declaration
public virtual PlaylistsResource.ListRequest List(Repeatable<string> part)Parameters
| Type | Name | Description | 
|---|---|---|
| Repeatable<string> | 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
| Type | Description | 
|---|---|
| PlaylistsResource.ListRequest | 
Update(Playlist, Repeatable<string>)
Updates an existing resource.
Declaration
public virtual PlaylistsResource.UpdateRequest Update(Playlist body, Repeatable<string> part)Parameters
| Type | Name | Description | 
|---|---|---|
| Playlist | body | The body of the request. | 
| Repeatable<string> | 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. | 
Returns
| Type | Description | 
|---|---|
| PlaylistsResource.UpdateRequest |