Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
addons:webhooks:start [2019-04-11 13:23] Filip Arenbo |
— (current) | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Webhooks ====== | ||
| - | Gives Webhook functionality to Lime CRM. Webhooks make it possible to create a subscription from an external system to events in Lime CRM. You can subscribe to '' | ||
| - | |||
| - | ===== Features ===== | ||
| - | It is possible to list available events, current subscriptions and register a new or update an existing subscription. | ||
| - | |||
| - | ==== Authorization ==== | ||
| - | To be able to call the endpoints, the user must be an Administrator or part of the dedicated Lime CRM group '' | ||
| - | |||
| - | <alert type=" | ||
| - | |||
| - | ===== Requirements ===== | ||
| - | |||
| - | * On-premise server environment. | ||
| - | * Lime CRM server version 12.48 or newer. | ||
| - | |||
| - | ===== Install ===== | ||
| - | |||
| - | - Create a group in LISA called '' | ||
| - | - Download the latest release from [[https:// | ||
| - | - In a command prompt with elevated rights, go to the folder where you put the files and run the following command. <code bash> | ||
| - | limeplug install . | ||
| - | - Restart the web server and the event handler | ||
| - | </ | ||
| - | |||
| - | ===== Endpoints ===== | ||
| - | |||
| - | The base url is '' | ||
| - | |||
| - | ==== List available events/ | ||
| - | |||
| - | '' | ||
| - | |||
| - | ==== List current subscriptions ==== | ||
| - | |||
| - | '' | ||
| - | |||
| - | ==== Create a subscription ==== | ||
| - | |||
| - | '' | ||
| - | |||
| - | One can add a secret key when creating a subscription. | ||
| - | |||
| - | request body: | ||
| - | |||
| - | < | ||
| - | { | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | } | ||
| - | </ | ||
| - | |||
| - | ==== Update a subscription ==== | ||
| - | Partial updates are supported, i.e just updating one, or more properties without affecting the remaining properties | ||
| - | |||
| - | '' | ||
| - | |||
| - | request body: | ||
| - | |||
| - | < | ||
| - | { | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | } | ||
| - | </ | ||
| - | |||
| - | ==== Show a subscription ==== | ||
| - | |||
| - | '' | ||
| - | |||
| - | response body: | ||
| - | |||
| - | < | ||
| - | { | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | } | ||
| - | </ | ||
| - | |||
| - | ==== Delete a subscription ==== | ||
| - | |||
| - | '' | ||