Class CreatePlaylistRequest
java.lang.Object
de.sonallux.spotify.api.apis.playlists.CreatePlaylistRequest
Create Playlist request
Required OAuth scopes
playlist-modify-public, playlist-modify-private
Response
A playlist
-
Constructor Summary
ConstructorsConstructorDescriptionCreatePlaylistRequest(ApiClient apiClient, String userId, String name) Create Playlist request -
Method Summary
Modifier and TypeMethodDescription_public(boolean _public) build()Build the request into an executable api callcollaborative(boolean collaborative) description(String description)
-
Constructor Details
-
CreatePlaylistRequest
Create Playlist request- Parameters:
apiClient-The API client
userId-The user's Spotify user ID.
name-The name for the new playlist, for example
"Your Coolest Playlist". This name does not need to be unique; a user may have several playlists with the same name.
-
-
Method Details
-
_public
- Parameters:
_public-Defaults to
true. Iftruethe playlist will be public, iffalseit will be private. To be able to create private playlists, the user must have granted theplaylist-modify-privatescope- Returns:
- this request
-
collaborative
- Parameters:
collaborative-Defaults to
false. Iftruethe playlist will be collaborative. Note: to create a collaborative playlist you must also setpublictofalse. To create collaborative playlists you must have grantedplaylist-modify-privateandplaylist-modify-publicscopes.- Returns:
- this request
-
description
- Parameters:
description-value for playlist description as displayed in Spotify Clients and in the Web API.
- Returns:
- this request
-
build
Build the request into an executable api call- Returns:
- an executable api call
-