Class GetAlbumsTracksRequest
java.lang.Object
com.wrapper.spotify.requests.AbstractRequest<T>
com.wrapper.spotify.requests.data.AbstractDataRequest<Paging<TrackSimplified>>
com.wrapper.spotify.requests.data.albums.GetAlbumsTracksRequest
- All Implemented Interfaces:
IRequest<Paging<TrackSimplified>>
public class GetAlbumsTracksRequest extends AbstractDataRequest<Paging<TrackSimplified>>
Get Spotify catalog information about an album's tracks. Optional parameters can be used to limit the number of
tracks returned.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGetAlbumsTracksRequest.BuilderBuilder class for building aGetAlbumsTracksRequest. -
Method Summary
Modifier and Type Method Description Paging<TrackSimplified>execute()Get the tracks from the album.Methods inherited from class com.wrapper.spotify.requests.AbstractRequest
bodyParametersToJson, deleteJson, executeAsync, getBody, getBodyParameters, getContentType, getHeaders, getHttpManager, getJson, getUri, initializeBody, postJson, putJson
-
Method Details
-
execute
public Paging<TrackSimplified> execute() throws IOException, SpotifyWebApiException, org.apache.hc.core5.http.ParseExceptionGet the tracks from the album.- Returns:
- A track 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
-