View Source ExPipedrive.Webhook.Handler behaviour (ex_pipedrive v0.2.0)

Behaviour for consuming normalized Pipedrive webhook events.

Configure a module implementing this behaviour when mounting ExPipedriveWeb.Incoming.Handler from the optional ex_pipedrive_web package. The callback runs synchronously, so handlers should acknowledge quickly and delegate longer work to the host application.

Event structs stay in core so API-only apps can decode webhook payloads without Plug.

Summary

Callbacks

@callback handle_event(ExPipedrive.Webhook.Event.t()) :: term()