Class AuthorizationCodePKCERequest
java.lang.Object
se.michaelthelin.spotify.requests.AbstractRequest<AuthorizationCodeCredentials>
se.michaelthelin.spotify.requests.authorization.authorization_code.pkce.AuthorizationCodePKCERequest
- All Implemented Interfaces:
IRequest<AuthorizationCodeCredentials>
Request an access token by exchanging the authorization code for an access token with an
Authorization Code
request.
-
Nested Class 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
-
Method Details
-
execute
public AuthorizationCodeCredentials execute() throws IOException, SpotifyWebApiException, org.apache.hc.core5.http.ParseExceptionRequest newAuthorizationCodeCredentials
.- Returns:
- An
AuthorizationCodeCredentials
object containing an access token and refresh 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
-