Class CheckUsersFollowPlaylistRequest.Builder
java.lang.Object
se.michaelthelin.spotify.requests.AbstractRequest.Builder<Boolean[],CheckUsersFollowPlaylistRequest.Builder>
se.michaelthelin.spotify.requests.data.AbstractDataRequest.Builder<Boolean[],CheckUsersFollowPlaylistRequest.Builder>
se.michaelthelin.spotify.requests.data.follow.CheckUsersFollowPlaylistRequest.Builder
- All Implemented Interfaces:
IRequest.Builder<Boolean[],CheckUsersFollowPlaylistRequest.Builder>
- Enclosing class:
CheckUsersFollowPlaylistRequest
public static final class CheckUsersFollowPlaylistRequest.Builder
extends AbstractDataRequest.Builder<Boolean[],CheckUsersFollowPlaylistRequest.Builder>
Builder class for building a
CheckUsersFollowPlaylistRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()The request build method.The user IDs setter.Deprecated.since the endpoint no longer needs it.playlist_id(String playlist_id) The playlist ID setter.protected CheckUsersFollowPlaylistRequest.Builderself()Return this instance to simulate a self-type.Methods inherited from class se.michaelthelin.spotify.requests.AbstractRequest.Builder
setBody, setBodyParameter, setContentType, setDefaults, setHeader, setHost, setHttpManager, setPath, setPathParameter, setPort, setQueryParameter, setScheme
-
Constructor Details
-
Builder
Create a newCheckUsersFollowPlaylistRequest.Builderinstance.Following a playlist can be done publicly or privately. Checking if a user publicly follows a playlist doesn't require any scopes; if the user is publicly following the playlist, this endpoint returns
true.Checking if the user is privately following a playlist is only possible for the current user when that user has granted access to the
playlist-read-private scope.- Parameters:
accessToken- Required. A valid access token from the Spotify Accounts service.- See Also:
-
-
Method Details
-
owner_id
Deprecated.since the endpoint no longer needs it.The playlists owner ID setter.- Parameters:
owner_id- The Spotify user ID of the person who owns the playlist.- Returns:
- A
CheckUsersFollowPlaylistRequest.Builder. - See Also:
-
playlist_id
The playlist ID setter.- Parameters:
playlist_id- The Spotify ID of the playlist.- Returns:
- A
CheckUsersFollowPlaylistRequest.Builder. - See Also:
-
ids
The user IDs setter.- Parameters:
ids- Required. A comma-separated list of Spotify User IDs; the ids of the users that you want to check to see if they follow the playlist. Maximum: 5 ids.- Returns:
- A
CheckUsersFollowPlaylistRequest.Builder. - See Also:
-
build
The request build method.- Returns:
- A custom
CheckUsersFollowPlaylistRequest.
-
self
Description copied from class:AbstractRequest.BuilderReturn this instance to simulate a self-type.- Specified by:
selfin classAbstractRequest.Builder<Boolean[],CheckUsersFollowPlaylistRequest.Builder> - Returns:
- This instance.
-