Class SearchAlbumsSpecialRequest
- java.lang.Object
-
- se.michaelthelin.spotify.requests.AbstractRequest<T>
-
- se.michaelthelin.spotify.requests.data.AbstractDataRequest<Paging<AlbumSimplifiedSpecial>>
-
- se.michaelthelin.spotify.requests.data.search.simplified.special.SearchAlbumsSpecialRequest
-
- All Implemented Interfaces:
IRequest<Paging<AlbumSimplifiedSpecial>>
public class SearchAlbumsSpecialRequest extends AbstractDataRequest<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
Nested Classes Modifier and Type Class Description static classSearchAlbumsSpecialRequest.BuilderBuilder class for building aSearchAlbumsSpecialRequest.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Paging<AlbumSimplifiedSpecial>execute()Search for albums.-
Methods inherited from class se.michaelthelin.spotify.requests.AbstractRequest
bodyParametersToJson, deleteJson, executeAsync, getBody, getBodyParameters, getContentType, getHeaders, getHttpManager, getJson, getUri, initializeBody, postJson, putJson
-
-
-
-
Method Detail
-
execute
public Paging<AlbumSimplifiedSpecial> execute() throws IOException, SpotifyWebApiException, org.apache.hc.core5.http.ParseException
Search for albums.- Returns:
- An
AlbumSimplifiedSpecialpaging. - 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
-
-