Class GetRecommendationsRequest
- java.lang.Object
-
- com.wrapper.spotify.requests.AbstractRequest
-
- com.wrapper.spotify.requests.data.AbstractDataRequest
-
- com.wrapper.spotify.requests.data.browse.GetRecommendationsRequest
-
- All Implemented Interfaces:
IRequest
public class GetRecommendationsRequest extends AbstractDataRequest
Create a playlist-style listening experience based on seed artists, tracks and genres.
Recommendations are generated based on the available information for a given seed entity and matched against similar artists and tracks. If there is sufficient information about the provided seeds, a list of tracks will be returned together with pool size details.
For artists and tracks that are very new or obscure there might not be enough data to generate a list of tracks.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGetRecommendationsRequest.BuilderBuilder class for building aGetRecommendationsRequest.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Recommendationsexecute()Get theRecommendations.-
Methods inherited from class com.wrapper.spotify.requests.AbstractRequest
bodyParametersToJson, deleteJson, executeAsync, getBody, getBodyParameters, getContentType, getHeaders, getHttpManager, getJson, getUri, initializeBody, postJson, putJson
-
-
-
-
Method Detail
-
execute
public Recommendations execute() throws IOException, SpotifyWebApiException
Get theRecommendations.- Returns:
- A
Recommendationsobject. - Throws:
IOException- In case of networking issues.SpotifyWebApiException- The Web API returned an error further specified in this exception's root cause.
-
-