LineDrive.Incoming.Handler (line_drive v0.25.1)
This plug handles incoming webhook POSTs from Pipedrive and converts them into events published via the Registry.
To subscribe to a particular event (such as updated deals in the following
example), use:
Registry.register(Registry.LineDriveEvents, :updated_deal, [])
You will then need to implement a handle_info({:updated_deal, payload})
,
where the payload varies by event type. See
https://pipedrive.readme.io/docs/guide-for-webhooks for more information about
possible event types and the expected payloads for each.
Summary
Functions
Link to this function
call(conn, opts)
Callback implementation for Plug.call/2
.
Link to this function
init(opts)
Callback implementation for Plug.init/1
.
Link to this function
process_event(payload)
Link to this function