swimmadude66 / YTRadio

Very simple distributed YouTube viewer with the idea of synchronized music listening
MIT License
10 stars 10 forks source link

Feature request - play Youtube playlists #25

Closed John-Garrett closed 9 years ago

John-Garrett commented 9 years ago

I'd like to be able to paste the URL for a youtube playlist.

swimmadude66 commented 9 years ago

Rolled in to API, not in UI yet.

Basic instructions:

POST https://swimmadev.xyz/api/login
headers: {"Content-Type":"Application/json", "Accept":"Application/json"}
body: {"Username": "your username", "Password":"yourpassword"}

will return with a session key. Save this for use as an API key for the next call

POST https://swimmadev.xyz/api/playlists/import
headers: {"Content-Type":"Application/json", "Authorization":"Your API key HERE"}
body: {"Name":"Name to be displayed in your playlists window", "PlaylistID": "ID of the YT playlist" }

This will take a second, and return with {"Success":true} on successful import.