thelinmichael/spotify-web-api-node

Is addToQueue working?

Closed this issue · 1 comments

I tried to use addToQueue, inside a Firebase function. But I got an error:

TypeError: Spotify.addToQueue is not a function

Functions seems implemented. So why I got this error?

addToQueue: function(uri, options, callback) {

I am using this version:
spotify-web-api-node": "^4.0.0

I am calling this function like that:

Spotify.addToQueue(trackUri, { device_id: status.device }).then((data) => {
          console.log(data);
}, function (error) {
});

Solved upgrading to last version