Used internally at Radiofy.se.
socket = Webhallon::Client.new("http://server:8181")
Create a non collaborative playlist.
socket.playlists.create({
name: "My playlist",
collaborative: false
})
socket.tracks.wipe("spotify:user:username:playlist:47JbGTR8wxJw0SX0G1CJcS")
socket.playlists.information("spotify:user:username:playlist:47JbGTR8wxJw0SX0G1CJcS")
socket.playlists.update({
playlist: "spotify:user:username:playlist:47JbGTR8wxJw0SX0G1CJcS",
name: "New name",
collaborative: false
})
socket.tracks.add({
playlist: "spotify:user:username:playlist:47JbGTR8wxJw0SX0G1CJcS",
tracks: ["spotify:track:2Huqz13a9lalQkSPeSk7Sy"],
index: 0
})
socket.tracks.keep({
playlist: "spotify:user:username:playlist:47JbGTR8wxJw0SX0G1CJcS",
range: 30..50
})
- name (String) The name of the playlist.
- link (String) The spotify playlist url.
- length (Integer) The amount of tracks in the playlist.
- tracks (Array< String >) A list of spotify tracks.
- collaborative? (Boolean) Is the playlist collaborative?
Webhallon is tested in OS X 10.7.4 using Ruby 1.9.2.
Webhallon is released under the MIT license.