Skip to content
DocumentationAPI Reference

Follow Playlist

playlists().followers().follow(FollowerFollowParamsparams = FollowerFollowParams.none(), RequestOptionsrequestOptions = RequestOptions.none())
PUT/playlists/{playlist_id}/followers

Add the current user as a follower of a playlist.

ParametersExpand Collapse
FollowerFollowParams params
Optional<String> playlistId

The Spotify ID of the playlist.

Optional<Boolean> published

The playlist's public/private status (if it should be added to the user's profile or not): true the playlist will be public, false the playlist will be private, null the playlist status is not relevant. For more about public/private status, see Working with Playlists

Follow Playlist

package dev.cjav.spotted.example;

import dev.cjav.spotted.client.SpottedClient;
import dev.cjav.spotted.client.okhttp.SpottedOkHttpClient;
import dev.cjav.spotted.models.playlists.followers.FollowerFollowParams;

public final class Main {
    private Main() {}

    public static void main(String[] args) {
        SpottedClient client = SpottedOkHttpClient.fromEnv();

        client.playlists().followers().follow("3cEYpjA9oz9GiPac4AsH4n");
    }
}
Returns Examples