Follow Artists or Users
me().following().follow(FollowingFollowParamsparams, RequestOptionsrequestOptions = RequestOptions.none())
PUT/me/following
Add the current user as a follower of one or more artists or other Spotify users.
Parameters
Follow 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.FollowingFollowParams;
public final class Main {
private Main() {}
public static void main(String[] args) {
SpottedClient client = SpottedOkHttpClient.fromEnv();
FollowingFollowParams params = FollowingFollowParams.builder()
.addId("string")
.build();
client.me().following().follow(params);
}
}