Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
addons:webhooks:start [2019-02-11 09:21]
Filip Arenbo created
— (current)
Line 1: Line 1:
-====== Lime CRM Webhook Add-on ====== 
  
-Gives Webhook functionality to Lime CRM. Webhooks makes it possible to create an subscription from an external system to events in Lime CRM. You can subscribe to ''%%new%%'', ''%%update%%'', ''%%delete%%'' and ''%%restore%%'' for all available LimeTypes. 
- 
-You set up an subscription by posting a subscription request 
- 
-<code> 
-{ 
-    "events" : ["company.new", "helpdesk.update"], 
-    "target_url" : "https://example.org/hook/123"  
-} 
-</code> 
-===== Install ===== 
- 
-<code bash> 
-$ limeplug install lime-plug-webhooks 
-</code> 
- 
-or add it to your solutions ''%%dependencies.txt%%'' 
-===== Endpoints ===== 
- 
-The endpoints are available under 
- 
-Base url is ''%%https://{your_lime_app_url}/{your_lime_app}/api/v1/subscription/%%'' 
- 
-==== List available subscriptions ==== 
- 
-''%%GET: /subscription/available/%%'' 
- 
-==== List current subscriptions ==== 
- 
-''%%GET: /subscription/%%'' 
- 
-==== Create a subscription ==== 
- 
-''%%POST: /subscription/%%'' 
- 
-request body: 
- 
-<code> 
-{ 
-    "events" : ["company.new"], 
-    "target_url" : "https://example.org/hook/123"  
-} 
-</code> 
-==== Updates a subscription ==== 
- 
-''%%PUT: /subscription/:id%%'' 
- 
-request body: 
- 
-<code> 
-{ 
-    "events" : ["company.new"], 
-    "target_url" : "https://example.org/hook/123"  
-} 
-</code> 
-==== Shows a subscription ==== 
- 
-''%%GET: /subscription/:id%%'' 
- 
-response body: 
- 
-<code> 
-{ 
-    "id" : 1, 
-    "events" : ["company.new"], 
-    "target_url" : "https://example.org/hook/123", 
-    "enabled": true 
-} 
-</code> 
-==== Deletes a subscription ==== 
- 
-''%%DELETE: /subscription/:id%%'' 
  • Last modified: 6 years ago
  • by Filip Arenbo