public static final class GetPlaylistsTracksRequest.Builder extends AbstractDataPagingRequest.Builder<PlaylistTrack,GetPlaylistsTracksRequest.Builder>
GetPlaylistsTracksRequest.| Constructor and Description |
|---|
Builder(String accessToken)
Create a new
GetPlaylistsTracksRequest.Builder. |
| Modifier and Type | Method and Description |
|---|---|
GetPlaylistsTracksRequest |
build()
The request build method.
|
GetPlaylistsTracksRequest.Builder |
fields(String fields)
The fields filter setter.
|
GetPlaylistsTracksRequest.Builder |
limit(Integer limit)
The limit setter.
|
GetPlaylistsTracksRequest.Builder |
market(com.neovisionaries.i18n.CountryCode market)
The market country code setter.
|
GetPlaylistsTracksRequest.Builder |
offset(Integer offset)
The offset setter.
|
GetPlaylistsTracksRequest.Builder |
playlist_id(String playlist_id)
The playlist ID setter.
|
protected GetPlaylistsTracksRequest.Builder |
self()
Return this instance to simulate a self-type.
|
GetPlaylistsTracksRequest.Builder |
user_id(String user_id)
Deprecated.
Playlist IDs are unique for themselves. This parameter is thus no longer used
(https://developer.spotify.com/community/news/2018/06/12/changes-to-playlist-uris/)
|
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)
GetPlaylistsTracksRequest.Builder.
Both Public and Private playlists belonging to any user are retrievable on provision of a valid access token.
accessToken - Required. A valid access token from the Spotify Accounts service.@Deprecated public GetPlaylistsTracksRequest.Builder user_id(String user_id)
user_id - The user's Spotify user ID.GetPlaylistsTracksRequest.Builder.public GetPlaylistsTracksRequest.Builder playlist_id(String playlist_id)
playlist_id - The Spotify ID for the playlist.GetPlaylistsTracksRequest.Builder.public GetPlaylistsTracksRequest.Builder fields(String fields)
fields - Optional. Filters for the query: a comma-separated list of the fields to return.
If omitted, all fields are returned.GetPlaylistsTracksRequest.Builder.public GetPlaylistsTracksRequest.Builder limit(Integer limit)
limit - Optional. The maximum number of tracks to return. Default: 100. Minimum: 1. Maximum: 100.GetPlaylistsTracksRequest.Builder.public GetPlaylistsTracksRequest.Builder offset(Integer offset)
offset - Optional. The index of the first track to return. Default: 0 (the first object).GetPlaylistsTracksRequest.Builder.public GetPlaylistsTracksRequest.Builder market(com.neovisionaries.i18n.CountryCode market)
market - Optional. An ISO 3166-1 alpha-2 country code. Provide this
parameter if you want to apply Track Relinking.GetPlaylistsTracksRequest.Builder.public GetPlaylistsTracksRequest build()
GetPlaylistsTracksRequest.protected GetPlaylistsTracksRequest.Builder self()
AbstractRequest.Builderself in class AbstractRequest.Builder<Paging<PlaylistTrack>,GetPlaylistsTracksRequest.Builder>Copyright © 2020. All rights reserved.