getIntegration method

Future<GetIntegrationResult> getIntegration({
  1. required String apiId,
  2. required String integrationId,
})

Gets an Integration.

May throw NotFoundException. May throw TooManyRequestsException.

Parameter apiId : The API identifier.

Parameter integrationId : The integration ID.

Implementation

Future<GetIntegrationResult> getIntegration({
  required String apiId,
  required String integrationId,
}) async {
  ArgumentError.checkNotNull(apiId, 'apiId');
  ArgumentError.checkNotNull(integrationId, 'integrationId');
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/v2/apis/${Uri.encodeComponent(apiId)}/integrations/${Uri.encodeComponent(integrationId)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetIntegrationResult.fromJson(response);
}