Class GetUsersSavedTracksRequest
java.lang.Object
se.michaelthelin.spotify.requests.AbstractRequest<Paging<SavedTrack>>
se.michaelthelin.spotify.requests.data.AbstractDataRequest<Paging<SavedTrack>>
se.michaelthelin.spotify.requests.data.library.GetUsersSavedTracksRequest
- All Implemented Interfaces:
IRequest<Paging<SavedTrack>>
Get a list of the songs saved in the current Spotify user’s "Your Music" library.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Builder class for building aGetUsersSavedTracksRequest
. -
Method Summary
Modifier and TypeMethodDescriptionexecute()
Get the songs from the current users "Your Music" library.Methods inherited from class se.michaelthelin.spotify.requests.AbstractRequest
bodyParametersToJson, deleteJson, executeAsync, getBody, getBodyParameters, getContentType, getHeaders, getHttpManager, getJson, getUri, initializeBody, postJson, putJson
-
Method Details
-
execute
public Paging<SavedTrack> execute() throws IOException, SpotifyWebApiException, org.apache.hc.core5.http.ParseExceptionGet the songs from the current users "Your Music" library.- Returns:
- A
SavedTrack
paging. - Throws:
IOException
- In case of networking issues.SpotifyWebApiException
- The Web API returned an error further specified in this exception's root cause.org.apache.hc.core5.http.ParseException
-