Check If User Follows Artists or Users
List<boolean> me().following().check(FollowingCheckParamsparams, RequestOptionsrequestOptions = RequestOptions.none())
GET/me/following/contains
Check to see if the current user is following one or more artists or other Spotify users.
Parameters
Check If User Follows Artists or Users
package dev.cjav.spotted.example;
import dev.cjav.spotted.client.SpottedClient;
import dev.cjav.spotted.client.okhttp.SpottedOkHttpClient;
import dev.cjav.spotted.models.me.following.FollowingCheckParams;
public final class Main {
private Main() {}
public static void main(String[] args) {
SpottedClient client = SpottedOkHttpClient.fromEnv();
FollowingCheckParams params = FollowingCheckParams.builder()
.ids("2CIMQHirSU0MQqyYHq0eOx,57dN52uHvrHOxijzpIgu3E,1vCWHaC5f2uS3yhpwWbIA6")
.type(FollowingCheckParams.Type.ARTIST)
.build();
List<Boolean> response = client.me().following().check(params);
}
}[
false,
true
]Returns Examples
[
false,
true
]