HookSniff.Webhooks (hooksniff v1.0.0)
Webhook send, list, batch, replay.
Summary
Functions
Get a webhook delivery by ID
List webhook deliveries (paginated). Accepts :limit and :offset opts.
List all webhook deliveries (auto-paginate). Accepts :limit and :max_pages opts.
Replay a webhook delivery
Send a batch of webhooks
Send a webhook
Functions
@spec get(HookSniff.t(), String.t()) :: {:ok, map()} | {:error, term()}
Get a webhook delivery by ID
@spec list( HookSniff.t(), keyword() ) :: {:ok, map()} | {:error, term()}
List webhook deliveries (paginated). Accepts :limit and :offset opts.
@spec list_all( HookSniff.t(), keyword() ) :: {:ok, list()} | {:error, term()}
List all webhook deliveries (auto-paginate). Accepts :limit and :max_pages opts.
@spec replay(HookSniff.t(), String.t()) :: {:ok, map()} | {:error, term()}
Replay a webhook delivery
@spec send_batch(HookSniff.t(), map()) :: {:ok, map()} | {:error, term()}
Send a batch of webhooks
@spec send_webhook(HookSniff.t(), map()) :: {:ok, map()} | {:error, term()}
Send a webhook