getAccessToken method

Future<GetAccessTokenOutput> getAccessToken({
  1. required String accessTokenId,
})

Retrieves information about an access token.

May throw AccessDeniedException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter accessTokenId : ID of the token.

Implementation

Future<GetAccessTokenOutput> getAccessToken({
  required String accessTokenId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/tokens/${Uri.encodeComponent(accessTokenId)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetAccessTokenOutput.fromJson(response);
}