Class FollowPlaylistRequest


  • public class FollowPlaylistRequest
    extends Object
    Follow a Playlist request

    Required OAuth scopes

    playlist-modify-public, playlist-modify-private

    Response

    On success, the HTTP status code in the response header is 200 OK and the response body is empty. On error, the header status code is an error code and the response body contains an error object.

    • Constructor Detail

      • FollowPlaylistRequest

        public FollowPlaylistRequest​(ApiClient apiClient,
                                     String playlistId)

        Follow a Playlist request

        Parameters:
        apiClient -

        The API client

        playlistId -

        The Spotify ID of the playlist. Any playlist can be followed, regardless of its public/private status, as long as you know its playlist ID.

    • Method Detail

      • _public

        public FollowPlaylistRequest _public​(boolean _public)

        Defaults to true. If true the playlist will be included in user's public playlists, if false it will remain private.

      • build

        public ApiCall<Void> build()
        Build the request into an executable call