public class ClientCredentialsRequest extends AbstractAuthorizationRequest<ClientCredentials>
| Modifier and Type | Class and Description |
|---|---|
static class |
ClientCredentialsRequest.Builder
Builder class for building a
ClientCredentialsRequest. |
| Constructor and Description |
|---|
ClientCredentialsRequest(ClientCredentialsRequest.Builder builder) |
| Modifier and Type | Method and Description |
|---|---|
ClientCredentials |
execute()
Request an access token.
|
bodyParametersToJson, deleteJson, executeAsync, getBody, getBodyParameters, getContentType, getHeaders, getHttpManager, getJson, getUri, initializeBody, postJson, putJsonpublic ClientCredentialsRequest(ClientCredentialsRequest.Builder builder)
public ClientCredentials execute() throws IOException, SpotifyWebApiException, org.apache.hc.core5.http.ParseException
ClientCredentials object containing an access token.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.