Skip to main content

Inttegro Dart SDK

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.

Developer preview

The package is not published on pub.dev yet. Pin the exact Git revision below; the guide will move to the registry package after its first release.

Install

dependencies:
inttegro:
git:
url: https://github.com/zebodotdev/inttegro-sdk-dart
ref: 44c9803f66ce4010ff0de756323aab63cbed952e

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