HookSniff.Webhooks (hooksniff v1.2.0)
Webhook send, list, batch, replay.
Summary
Functions
Get a webhook delivery by ID
Get a message by ID
List webhook deliveries (paginated). Accepts :limit and :offset opts.
List messages (paginated). Accepts :limit and :offset opts.
Replay a webhook delivery
Send a webhook
Functions
@spec get(HookSniff.t(), String.t()) :: {:ok, map()} | {:error, term()}
Get a webhook delivery by ID
@spec get_message(HookSniff.t(), String.t()) :: {:ok, map()} | {:error, term()}
Get a message by ID
@spec list( HookSniff.t(), keyword() ) :: {:ok, map()} | {:error, term()}
List webhook deliveries (paginated). Accepts :limit and :offset opts.
@spec list_messages( HookSniff.t(), keyword() ) :: {:ok, map()} | {:error, term()}
List messages (paginated). Accepts :limit and :offset opts.
@spec replay(HookSniff.t(), String.t()) :: {:ok, map()} | {:error, term()}
Replay a webhook delivery
@spec send_webhook(HookSniff.t(), map()) :: {:ok, map()} | {:error, term()}
Send a webhook