Class GetRecommendationsRequest
java.lang.Object
se.michaelthelin.spotify.requests.AbstractRequest<Recommendations>
se.michaelthelin.spotify.requests.data.AbstractDataRequest<Recommendations>
se.michaelthelin.spotify.requests.data.browse.GetRecommendationsRequest
- All Implemented Interfaces:
IRequest<Recommendations>
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
Modifier and TypeClassDescriptionstatic final class
Builder class for building aGetRecommendationsRequest
. -
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 Recommendations execute() throws IOException, SpotifyWebApiException, org.apache.hc.core5.http.ParseExceptionGet theRecommendations
.- Returns:
- A
Recommendations
object. - 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
-