Class SearchAlbumsSpecialRequest
java.lang.Object
se.michaelthelin.spotify.requests.AbstractRequest<Paging<AlbumSimplifiedSpecial>>
se.michaelthelin.spotify.requests.data.AbstractDataRequest<Paging<AlbumSimplifiedSpecial>>
se.michaelthelin.spotify.requests.data.search.simplified.special.SearchAlbumsSpecialRequest
- All Implemented Interfaces:
IRequest<Paging<AlbumSimplifiedSpecial>>
Get Spotify catalog information about albums that match a keyword string.
This class exists because it includes the property totalTracks
, which is not documented in the official
specification, although the albums object as returned by the searches API includes it.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Builder class for building aSearchAlbumsSpecialRequest
. -
Method Summary
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<AlbumSimplifiedSpecial> execute() throws IOException, SpotifyWebApiException, org.apache.hc.core5.http.ParseExceptionSearch for albums.- Returns:
- An
AlbumSimplifiedSpecial
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
-