Class GetAudioAnalysisForTrackRequest
java.lang.Object
com.wrapper.spotify.requests.AbstractRequest<T>
com.wrapper.spotify.requests.data.AbstractDataRequest<AudioAnalysis>
com.wrapper.spotify.requests.data.tracks.GetAudioAnalysisForTrackRequest
- All Implemented Interfaces:
IRequest<AudioAnalysis>
public class GetAudioAnalysisForTrackRequest extends AbstractDataRequest<AudioAnalysis>
Get a detailed audio analysis for a single track identified by its unique Spotify ID.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGetAudioAnalysisForTrackRequest.BuilderBuilder class for building aGetAudioAnalysisForTrackRequest. -
Method Summary
Modifier and Type Method Description AudioAnalysisexecute()Get an audio analysis for a track.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 AudioAnalysis execute() throws IOException, SpotifyWebApiException, org.apache.hc.core5.http.ParseExceptionGet an audio analysis for a track.- Returns:
- An
AudioAnalysis. - 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
-