Open nishantjinsi opened 4 years ago
Also struggled for so long until I check the source code! Need to change this in documentation.
yes please update documentation
Edit: Notably - the example here:
examples/add-remove-replace-tracks-in-a-playlist.js
Is correct - FYI :)
I was able to use the method without the user id and it worked just fine, so I think this issue might not be a problem anymore.
Summary:
Currently, the documentation/readme explains the function to call for creating a playlist. But when consuming it, I got an error saying
Bad Request
. And it seems that the function also needs to have the userID as a parameter to successfully create the playlist.Current Behaviour as via the documentation: const playlist = await spotifyApi.createPlaylist(playlistName, { 'public' : false })
Acceptable Behaviour: const playlist = await spotifyApi.createPlaylist(userId,playlistName, { 'public' : false })