Check If User Follows Artists or Users
client.me.following.check(FollowingCheckParams { ids, type } query, RequestOptionsoptions?): FollowingCheckResponse
GET/me/following/contains
Check to see if the current user is following one or more artists or other Spotify users.
Parameters
Returns
FollowingCheckResponse = Array<boolean>
Check If User Follows Artists or Users
import Spotted from 'spotted-ts';
const client = new Spotted({
accessToken: process.env['SPOTIFY_ACCESS_TOKEN'], // This is the default and can be omitted
});
const response = await client.me.following.check({
ids: '2CIMQHirSU0MQqyYHq0eOx,57dN52uHvrHOxijzpIgu3E,1vCWHaC5f2uS3yhpwWbIA6',
type: 'artist',
});
console.log(response);[
false,
true
]Returns Examples
[
false,
true
]