LineDrive.Incoming.Handler (line_drive v0.15.0)

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 for more information about possible event types and the expected payloads for each.

Link to this section Summary

Link to this section Functions

Link to this function

call(conn, opts)

Callback implementation for

Callback implementation for Plug.init/1.

Link to this function


Link to this function

transform_event(arg1, payload)