public static final class GetListOfCurrentUsersPlaylistsRequest.Builder extends AbstractDataPagingRequest.Builder<PlaylistSimplified,GetListOfCurrentUsersPlaylistsRequest.Builder>
GetListOfCurrentUsersPlaylistsRequest| Constructor and Description |
|---|
Builder(String accessToken)
Create a new
GetListOfCurrentUsersPlaylistsRequest.Builder. |
| Modifier and Type | Method and Description |
|---|---|
GetListOfCurrentUsersPlaylistsRequest |
build()
The request build method.
|
GetListOfCurrentUsersPlaylistsRequest.Builder |
limit(Integer limit)
The limit setter.
|
GetListOfCurrentUsersPlaylistsRequest.Builder |
offset(Integer offset)
The offset setter.
|
protected GetListOfCurrentUsersPlaylistsRequest.Builder |
self()
Return this instance to simulate a self-type.
|
setBody, setBodyParameter, setContentType, setDefaults, setHeader, setHost, setHttpManager, setPath, setPathParameter, setPort, setQueryParameter, setSchemeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetBody, setBodyParameter, setContentType, setDefaults, setHeader, setHost, setHttpManager, setPath, setPathParameter, setPort, setQueryParameter, setSchemepublic Builder(String accessToken)
GetListOfCurrentUsersPlaylistsRequest.Builder.
Private playlists are only retrievable for the current user and requires the playlist-read-private
scope to have been authorized by the user. Note: This scope alone will not return collaborative playlists,
even though they are always private.
Collaborative playlists are only retrievable for the current user and requires the
playlist-read-collaborative scope to have been authorized by the user.
accessToken - Required. A valid access token from the Spotify Accounts service.public GetListOfCurrentUsersPlaylistsRequest.Builder limit(Integer limit)
limit - Optional. The maximum number of playlists to return. Default: 20. Minimum: 1. Maximum: 50.GetListOfCurrentUsersPlaylistsRequest.Builder.public GetListOfCurrentUsersPlaylistsRequest.Builder offset(Integer offset)
offset - Optional. The index of the first playlist to return. Default: 0 (the first object). Maximum offset:
100.000. Use with limit(Integer) to get the next set of playlists.GetListOfCurrentUsersPlaylistsRequest.Builder.public GetListOfCurrentUsersPlaylistsRequest build()
GetListOfCurrentUsersPlaylistsRequest.protected GetListOfCurrentUsersPlaylistsRequest.Builder self()
AbstractRequest.Builderself in class AbstractRequest.Builder<Paging<PlaylistSimplified>,GetListOfCurrentUsersPlaylistsRequest.Builder>Copyright © 2020. All rights reserved.