Open ADEV-00 opened 2 years ago
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?
Looks like the README may need to be updated as the issue may be coming from the followers being undefined
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')