Inttegro Elixir SDK
The Inttegro Elixir SDK is the official typed client for BEAM applications and
services. Resource functions return domain structs such as Inttegro.Order;
HTTP response envelopes stay private.
Install
defp deps do
[
{:inttegro, "~> 0.9.0"}
]
end
Create a client
client = Inttegro.Client.new!(System.fetch_env!("INTTEGRO_API_KEY"))
request = Inttegro.LookupOrderRequest.new!(order_id: "order_...")
{:ok, order} = Inttegro.Orders.lookup(client, request)
IO.puts(order.id)
Observability and error reporting
Pass application-owned functions when creating the client:
client =
Inttegro.Client.new!(api_key,
telemetry: &MyApp.InttegroTelemetry.record/1,
error_reporter: &MyApp.InttegroErrors.report/1
)
The callbacks receive safe lifecycle metadata without API keys, bodies,
resource identifiers, or raw error messages. No error report is prepared when
:error_reporter is omitted.