Class GetUsersSavedTracksRequest
- java.lang.Object
-
- de.sonallux.spotify.api.apis.library.GetUsersSavedTracksRequest
-
public class GetUsersSavedTracksRequest extends Object
Get User's Saved Tracks requestRequired OAuth scopes
user-library-readResponse
On success, the HTTP status code in the response header is
200OK and the response body contains an array of saved track 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 GetUsersSavedTracksRequest(ApiClient apiClient)Get User's Saved Tracks request
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApiCall<Paging<SavedTrack>>build()Build the request into an executable callGetUsersSavedTracksRequestlimit(int limit)The maximum number of objects to return.GetUsersSavedTracksRequestmarket(String market)An ISO 3166-1 alpha-2 country code or the stringfrom_token.GetUsersSavedTracksRequestoffset(int offset)The index of the first object to return.
-
-
-
Constructor Detail
-
GetUsersSavedTracksRequest
public GetUsersSavedTracksRequest(ApiClient apiClient)
Get User's Saved Tracks request
- Parameters:
apiClient-The API client
-
-
Method Detail
-
market
public GetUsersSavedTracksRequest market(String market)
An ISO 3166-1 alpha-2 country code or the string
from_token. Provide this parameter if you want to apply Track Relinking.
-
limit
public GetUsersSavedTracksRequest limit(int limit)
The maximum number of objects to return. Default: 20. Minimum: 1. Maximum: 50.
-
offset
public GetUsersSavedTracksRequest offset(int offset)
The index of the first object to return. Default: 0 (i.e., the first object). Use with
limitto get the next set of objects.
-
build
public ApiCall<Paging<SavedTrack>> build()
Build the request into an executable call
-
-