Skip to content

Inttegro Dart SDK

Install and use the official server-side Inttegro SDK for Dart.

The Inttegro Dart SDK is the official typed client for server-side Dart applications. It does not depend on Flutter and must not be used to place a secret API key in a mobile or browser application.

Install

pubspec.yamlyaml
dependencies:
  inttegro: ^0.7.0

Create a client

import 'dart:io';
import 'package:inttegro/inttegro.dart';

final client = Client(
  apiKey: Platform.environment['INTTEGRO_API_KEY']!,
);

final order = await client.orders.lookup(
  const LookupOrderRequest(orderId: 'order_...'),
);

print(order.id);
client.close();

Resource methods return typed domain objects; wire response envelopes stay private.

Observability and error reporting

Pass application-owned Telemetry and ErrorReporter implementations when creating the client:

final client = Client(
  apiKey: apiKey,
  telemetry: telemetry,
  errorReporter: errorReporter,
);

The callbacks receive safe lifecycle metadata without API keys, bodies, resource identifiers, or raw error messages. No error report is prepared when errorReporter is omitted.

Continue

Type to search…

↑↓ navigate↵ selectEsc close