You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am having problem with spotifyApi.areFollowingPlaylist. I am testing the example you provided
spotifyApi.areFollowingPlaylist('5ieJqeLJjjI8iJWaxeBLuK',['thelinmichael','ella',]).then(function(data: any){data.body.forEach(function(isFollowing: any){console.log('User is following: '+isFollowing)})},function(err: any){console.log('Something went wrong!',err)})
But I am getting the error: TypeError: Cannot read properties of undefined (reading 'join')
The text was updated successfully, but these errors were encountered:
For some reason, the function needed a parameter before the playlist id.
I manage to fix my problem like this:
spotifyApi.areFollowingPlaylist('spotify','5ieJqeLJjjI8iJWaxeBLuK',['thelinmichael','ella',]).then(function(data: any){data.body.forEach(function(isFollowing: any){console.log('User is following: '+isFollowing)})},function(err: any){console.log('Something went wrong!',err)})
Can someone explain to me what this first parameter is?
I am having problem with spotifyApi.areFollowingPlaylist. I am testing the example you provided
But I am getting the error: TypeError: Cannot read properties of undefined (reading 'join')
The text was updated successfully, but these errors were encountered: