Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Playlists endpoints #34

Closed
brandonbothell opened this issue Mar 13, 2020 · 0 comments · Fixed by #54
Closed

Add Playlists endpoints #34

brandonbothell opened this issue Mar 13, 2020 · 0 comments · Fixed by #54
Assignees
Labels
enhancement New feature or request

Comments

@brandonbothell
Copy link
Owner

brandonbothell commented Mar 13, 2020

Structure:

{
  "kind": "youtube#playlist",
  "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,
    "tags": [
      string
    ],
    "defaultLanguage": string,
    "localized": {
      "title": string,
      "description": string
    }
  },
  "status": {
    "privacyStatus": string
  },
  "contentDetails": {
    "itemCount": unsigned integer
  },
  "player": {
    "embedHtml": string
  },
  "localizations": {
    (key): {
      "title": string,
      "description": string
    }
  }
}

Methods:

  • Insert:

    • POST https://www.googleapis.com/youtube/v3/playlists
    • OAuth
    • Parameters:
      • part: string - The parts to insert and to return.
        • contentDetails
        • id
        • localizations
        • player
        • snippet
        • status
    • Body:
      • snippet.title - required
      • snippet.description
      • status.privacyStatus
      • snippet.tags[]
      • snippet.defaultLanguage
      • localizations.(key)
      • localizations.(key).title
      • localizations.(key).description
    • Returns: A Playlist resource.
  • Update:

    • PUT https://www.googleapis.com/youtube/v3/playlists
    • 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 Playlist resource.
  • Delete:

    • DELETE https://www.googleapis.com/youtube/v3/playlists
    • OAuth
    • Parameters:
      • id: string - YouTube playlist ID for the playlist that is being deleted.
    • Body:
      • None
    • Returns: 204 No Content
@brandonbothell brandonbothell self-assigned this Mar 13, 2020
@brandonbothell brandonbothell added the enhancement New feature or request label Mar 13, 2020
@brandonbothell brandonbothell added this to To do in Full coverage via automation Mar 13, 2020
Full coverage automation moved this from To do to Done Mar 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Full coverage
  
Done
Development

Successfully merging a pull request may close this issue.

1 participant