Skip to content

Add PlaylistItems endpoints #35

@brandonbothell

Description

@brandonbothell

Structure:

{
  "kind": "youtube#playlistItem",
  "etag": etag,
  "id": string,
  "snippet": {
    "publishedAt": datetime,
    "channelId": string,
    "title": string,
    "description": string,
    "thumbnails": {
      (key): {
        "url": string,
        "width": unsigned integer,
        "height": unsigned integer
      }
    },
    "channelTitle": string,
    "playlistId": string,
    "position": unsigned integer,
    "resourceId": {
      "kind": string,
      "videoId": string,
    }
  },
  "contentDetails": {
    "videoId": string,
    "startAt": string,
    "endAt": string,
    "note": string,
    "videoPublishedAt": datetime
  },
  "status": {
    "privacyStatus": string
  }
}

Methods:

  • Insert:

    • POST https://www.googleapis.com/youtube/v3/playlistItems
    • OAuth
    • Parameters:
      • part: string - The parts to both insert and return.
        • contentDetails
        • id
        • snippet
        • status
    • Body:
      • snippet.playlistId - required
      • snippet.position
      • snippet.resourceId - required
      • contentDetails.note
      • contentDetails.startAt
      • contentDetails.endAt
    • Returns: A PlaylistItem resource.
  • Update:

    • PUT https://www.googleapis.com/youtube/v3/playlistItems
    • OAuth
    • Parameters:
      • [same as Insert method]
    • Body:
      • id - required
      • [same as Insert method]
      • If you are submitting an update request, and your request does not specify a value for a property that already has a value, the property's existing value will be deleted.
    • Returns: A PlaylistItem resource.
  • Delete:

    • DELETE https://www.googleapis.com/youtube/v3/playlistItems
    • OAuth
    • Parameters:
      • id: string - YouTube playlist item ID for the playlist item that is being deleted.
    • Body:
      • None
    • Returns: 204 No Content

Metadata

Metadata

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions