AmplifyUIBuilder.Client.
exchange_code_for_token
(**kwargs)¶Exchanges an access code for a token.
See also: AWS API Documentation
Request Syntax
response = client.exchange_code_for_token(
provider='figma',
request={
'code': 'string',
'redirectUri': 'string'
}
)
[REQUIRED]
The third-party provider for the token. The only valid value is figma
.
[REQUIRED]
Describes the configuration of the request.
The access code to send in the request.
The location of the application that will receive the access code.
dict
Response Syntax
{
'accessToken': 'string',
'expiresIn': 123,
'refreshToken': 'string'
}
Response Structure
(dict) --
accessToken (string) --
The access token.
expiresIn (integer) --
The date and time when the new access token expires.
refreshToken (string) --
The token to use to refresh a previously issued access token that might have expired.
Exceptions
AmplifyUIBuilder.Client.exceptions.InvalidParameterException