YouTube Data API v3 . playlists

Instance Methods

close()

Close httplib2 connections.

delete(id, onBehalfOfContentOwner=None, x__xgafv=None)

Deletes a resource.

insert(part, body=None, onBehalfOfContentOwner=None, onBehalfOfContentOwnerChannel=None, x__xgafv=None)

Inserts a new resource into this collection.

list(part, channelId=None, hl=None, id=None, maxResults=None, mine=None, onBehalfOfContentOwner=None, onBehalfOfContentOwnerChannel=None, pageToken=None, x__xgafv=None)

Retrieves a list of resources, possibly filtered.

list_next()

Retrieves the next page of results.

update(part, body=None, onBehalfOfContentOwner=None, x__xgafv=None)

Updates an existing resource.

Method Details

close()
Close httplib2 connections.
delete(id, onBehalfOfContentOwner=None, x__xgafv=None)
Deletes a resource.

Args:
  id: string, A parameter (required)
  onBehalfOfContentOwner: string, *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format
insert(part, body=None, onBehalfOfContentOwner=None, onBehalfOfContentOwnerChannel=None, x__xgafv=None)
Inserts a new resource into this collection.

Args:
  part: string, 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. (required) (repeated)
  body: object, The request body.
    The object takes the form of:

{ # A *playlist* resource represents a YouTube playlist. A playlist is a collection of videos that can be viewed sequentially and shared with other users. A playlist can contain up to 200 videos, and YouTube does not limit the number of playlists that each user creates. By default, playlists are publicly visible to other users, but playlists can be public or private. YouTube also uses playlists to identify special collections of videos for a channel, such as: - uploaded videos - favorite videos - positively rated (liked) videos - watch history - watch later To be more specific, these lists are associated with a channel, which is a collection of a person, group, or company's videos, playlists, and other YouTube information. You can retrieve the playlist IDs for each of these lists from the channel resource for a given channel. You can then use the playlistItems.list method to retrieve any of those lists. You can also add or remove items from those lists by calling the playlistItems.insert and playlistItems.delete methods.
  "contentDetails": { # The contentDetails object contains information like video count.
    "itemCount": 42, # The number of videos in the playlist.
  },
  "etag": "A String", # Etag of this resource.
  "id": "A String", # The ID that YouTube uses to uniquely identify the playlist.
  "kind": "youtube#playlist", # Identifies what kind of resource this is. Value: the fixed string "youtube#playlist".
  "localizations": { # Localizations for different languages
    "a_key": { # Playlist localization setting
      "description": "A String", # The localized strings for playlist's description.
      "title": "A String", # The localized strings for playlist's title.
    },
  },
  "player": { # The player object contains information that you would use to play the playlist in an embedded player.
    "embedHtml": "A String", # An