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