registerConnectorV2 method

Future<RegisterConnectorV2Response> registerConnectorV2({
  1. required String authCode,
  2. required String authState,
})

Grants permission to complete the authorization based on input parameters.

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

Parameter authCode : The authCode retrieved from authUrl to complete the OAuth 2.0 authorization code flow.

Parameter authState : The authState retrieved from authUrl to complete the OAuth 2.0 authorization code flow.

Implementation

Future<RegisterConnectorV2Response> registerConnectorV2({
  required String authCode,
  required String authState,
}) async {
  final $payload = <String, dynamic>{
    'AuthCode': authCode,
    'AuthState': authState,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/connectorsv2/register',
    exceptionFnMap: _exceptionFns,
  );
  return RegisterConnectorV2Response.fromJson(response);
}