Class GetAudiobookChaptersRequest
java.lang.Object
se.michaelthelin.spotify.requests.AbstractRequest<Paging<ChapterSimplified>>
se.michaelthelin.spotify.requests.data.AbstractDataRequest<Paging<ChapterSimplified>>
se.michaelthelin.spotify.requests.data.audiobooks.GetAudiobookChaptersRequest
- All Implemented Interfaces:
IRequest<Paging<ChapterSimplified>>
Get Spotify catalog information about an audiobook's chapters.
Note: Audiobooks are only available for the US, UK, Ireland, New Zealand and Australia markets.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder class for building aGetAudiobookChaptersRequest. -
Method Summary
Methods inherited from class AbstractRequest
bodyParametersToJson, deleteJson, executeAsync, getBody, getBodyParameters, getContentType, getHeaders, getHttpManager, getJson, getUri, initializeBody, postJson, putJson
-
Method Details
-
execute
public Paging<ChapterSimplified> execute() throws IOException, SpotifyWebApiException, org.apache.hc.core5.http.ParseExceptionGet the chapters from the audiobook.- Returns:
- A chapters 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- If a parsing error occurs.
-