Class GetUsersSavedAudiobooksRequest
java.lang.Object
se.michaelthelin.spotify.requests.AbstractRequest<Paging<AudiobookSimplified>>
se.michaelthelin.spotify.requests.data.AbstractDataRequest<Paging<AudiobookSimplified>>
se.michaelthelin.spotify.requests.data.audiobooks.GetUsersSavedAudiobooksRequest
- All Implemented Interfaces:
IRequest<Paging<AudiobookSimplified>>
public class GetUsersSavedAudiobooksRequest
extends AbstractDataRequest<Paging<AudiobookSimplified>>
Get a list of the audiobooks saved in the current Spotify user's "Your Music" library.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder class for building aGetUsersSavedAudiobooksRequest. -
Method Summary
Modifier and TypeMethodDescriptionexecute()Get the audiobooks from the current user's "Your Music" library.Methods inherited from class AbstractRequest
bodyParametersToJson, deleteJson, executeAsync, getBody, getBodyParameters, getContentType, getHeaders, getHttpManager, getJson, getUri, initializeBody, postJson, putJson
-
Method Details
-
execute
public Paging<AudiobookSimplified> execute() throws IOException, SpotifyWebApiException, org.apache.hc.core5.http.ParseExceptionGet the audiobooks from the current user's "Your Music" library.- Returns:
- A
AudiobookSimplifiedpaging. - 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- If a parsing error occurs.
-