thelinmichael / spotify-web-api-node

A Node.js wrapper for Spotify's Web API.
http://thelinmichael.github.io/spotify-web-api-node/
MIT License
3.1k stars 499 forks source link

Please, I need an explanation on this: spotifyApi.areFollowingPlaylist('5ieJqeLJjjI8iJWaxeBLuK', ['thelinmichael', 'ella']) #437

Open o-laj opened 2 years ago

o-laj commented 2 years ago

Please, I need an explanation on this: spotifyApi.areFollowingPlaylist('5ieJqeLJjjI8iJWaxeBLuK', ['thelinmichael', 'ella']) What does the '5ieJqeLJjjI8iJWaxeBLuK' represent 'thelinmichael' represent 'ella' represent

edilson commented 2 years ago

@o-laj checking the code i believe that '5ieJqeLJjjI8iJWaxeBLuK' is the playlistId and ['thelinmichael', 'ella'] are the user ids of those who follow the playlist. This function also accepts another parameter that is the userId of the playlist's owner, it comes before all the arguments.