Class GetAudiobookRequest
java.lang.Object
se.michaelthelin.spotify.requests.AbstractRequest<Audiobook>
se.michaelthelin.spotify.requests.data.AbstractDataRequest<Audiobook>
se.michaelthelin.spotify.requests.data.audiobooks.GetAudiobookRequest
Get Spotify catalog information for a single audiobook.
Note: Audiobooks are only available for the US, UK, Ireland, New Zealand and Australia markets.
-
Nested Class Summary
Nested Classes -
Method Summary
Methods inherited from class AbstractRequest
bodyParametersToJson, deleteJson, executeAsync, getBody, getBodyParameters, getContentType, getHeaders, getHttpManager, getJson, getUri, initializeBody, postJson, putJson
-
Method Details
-
execute
public Audiobook execute() throws IOException, SpotifyWebApiException, org.apache.hc.core5.http.ParseExceptionGet anAudiobooksynchronously.- Returns:
- An
Audiobook. - 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.
-