javascript - Spotify API - Remove all tracks from temporary playlist -
i have temporary playlist want button remove tracks said playlist. how done?
if using api version 1.0 can remove tracks
var mytempplaylist; models.playlist.createtemporary("mytemplist").done(function(playlist) { mytempplaylist = playlist; playlist.load("tracks").done(function(loadedplaylist) { //.... }); }); //remove existing tracks temp playlist mytempplaylist.tracks.clear();
Comments
Post a Comment