public class GetRecommendationsRequest extends AbstractDataRequest<Recommendations>
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.
| Modifier and Type | Class and Description |
|---|---|
static class |
GetRecommendationsRequest.Builder
Builder class for building a
GetRecommendationsRequest. |
| Modifier and Type | Method and Description |
|---|---|
Recommendations |
execute()
Get the
Recommendations. |
bodyParametersToJson, deleteJson, executeAsync, getBody, getBodyParameters, getContentType, getHeaders, getHttpManager, getJson, getUri, initializeBody, postJson, putJsonpublic Recommendations execute() throws IOException, SpotifyWebApiException, org.apache.hc.core5.http.ParseException
Recommendations.Recommendations object.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.ParseExceptionCopyright © 2020. All rights reserved.