alaingilbert / Turntable-API

Allows you to create bots for turntable.fm
http://alaingilbert.github.com/Turntable-API/
MIT License
317 stars 98 forks source link

Support for Playlists? #151

Closed MikeWills closed 11 years ago

MikeWills commented 11 years ago

I know there is a playlist within the API, but does it work with the new playlists? I haven't tried yet, but figured I'd open something to make sure someone tests it.

technobly commented 11 years ago

Here's my guess... it always did work, and the new playlists aren't new at all... just the front end to visualize them. :)

MikeWills commented 11 years ago

And that is possible. Like I said... I never tried it. If should be confirmed as working.

Izzmo commented 11 years ago

No, there has been a whole new list of API calls added. The old "playlist" property on songs does not exist anymore as far as I can tell looking at the calls going back and forth.

That being said, we need to update the snag API call to include playlist on there. It was just "playlist" before, but now it is "playlist_name."

alaingilbert commented 11 years ago

I added some functions to the api to support the playlists. (playlistListAll, playlistCreate, playlistDelete, playlistRename, playlistSwitch)

For now, when you do a playlistAdd, you have to specify the playlist name in which you want the song to be added. Else, the default value is "default" (and not the current selected playlist...)