Class GetListUsersPlaylistsRequest
- java.lang.Object
-
- de.sonallux.spotify.api.apis.playlists.GetListUsersPlaylistsRequest
-
public class GetListUsersPlaylistsRequest extends Object
Get a List of a User's Playlists requestRequired OAuth scopes
playlist-read-private, playlist-read-collaborativeResponse
On success, the HTTP status code in the response header is
200OK and the response body contains an array of simplified playlist objects (wrapped in a paging object) in JSON format. On error, the header status code is an error code and the response body contains an error object.
-
-
Constructor Summary
Constructors Constructor Description GetListUsersPlaylistsRequest(ApiClient apiClient, String userId)Get a List of a User's Playlists request
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApiCall<Paging<SimplifiedPlaylist>>build()Build the request into an executable callGetListUsersPlaylistsRequestlimit(int limit)The maximum number of playlists to return.GetListUsersPlaylistsRequestoffset(int offset)The index of the first playlist to return.
-
-
-
Constructor Detail
-
GetListUsersPlaylistsRequest
public GetListUsersPlaylistsRequest(ApiClient apiClient, String userId)
Get a List of a User's Playlists request
- Parameters:
apiClient-The API client
userId-The user's Spotify user ID.
-
-
Method Detail
-
limit
public GetListUsersPlaylistsRequest limit(int limit)
The maximum number of playlists to return. Default: 20. Minimum: 1. Maximum: 50.
-
offset
public GetListUsersPlaylistsRequest offset(int offset)
The index of the first playlist to return. Default: 0 (the first object). Maximum offset: 100.000. Use with
limitto get the next set of playlists.
-
build
public ApiCall<Paging<SimplifiedPlaylist>> build()
Build the request into an executable call
-
-