Class ClientCredentialsRequest
java.lang.Object
se.michaelthelin.spotify.requests.AbstractRequest<ClientCredentials>
se.michaelthelin.spotify.requests.authorization.AbstractAuthorizationRequest<ClientCredentials>
se.michaelthelin.spotify.requests.authorization.client_credentials.ClientCredentialsRequest
- All Implemented Interfaces:
IRequest<ClientCredentials>
Request an access token by creating a
Client Credentials
request.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Builder class for building aClientCredentialsRequest
. -
Constructor Summary
-
Method Summary
Methods inherited from class se.michaelthelin.spotify.requests.AbstractRequest
bodyParametersToJson, deleteJson, executeAsync, getBody, getBodyParameters, getContentType, getHeaders, getHttpManager, getJson, getUri, initializeBody, postJson, putJson
-
Constructor Details
-
ClientCredentialsRequest
-
-
Method Details
-
execute
public ClientCredentials execute() throws IOException, SpotifyWebApiException, org.apache.hc.core5.http.ParseExceptionRequest an access token.- Returns:
- A
ClientCredentials
object containing an access token. - 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
-