CI Hex HexDocs REUSE License: MIT

AshHooks

AshHooks adds inbound and outbound webhooks to Ash Framework resources.

Install

In an Ash application with Igniter, run:

mix igniter.install ash_hooks

Follow the tutorial setup for the Ash configuration required before compiling resources.

Receive a webhook

Use the ledger, provider, and migration from Get started. The signed-order example binds the original body as raw_body and the verification context as ctx. Use those bindings to run the first ingest.

{:ok, :created, %{status: :processed}} =
  AshHooks.Ingress.ingest(MyApp.WebhookLedger, :orders, raw_body, ctx)

Documentation

See Compatibility for supported runtimes and dependencies.

License

MIT.