Name |
Type |
Description |
Notes |
application_ids |
Array<Integer> |
The IDs of the Applications in which this webhook is available. An empty array means the webhook is available in `All Applications`. |
|
title |
String |
Name or title for this webhook. |
|
description |
String |
A description of the webhook. |
[optional] |
verb |
String |
API method for this webhook. |
|
url |
String |
API URL (supports templating using parameters) for this webhook. |
|
headers |
Array<String> |
List of API HTTP headers for this webhook. |
|
payload |
String |
API payload (supports templating using parameters) for this webhook. |
[optional] |
params |
Array<TemplateArgDef> |
Array of template argument definitions. |
|
enabled |
Boolean |
Enables or disables webhook from showing in the Rule Builder. |
|
require 'TalonOne'
instance = TalonOne::NewWebhook.new(application_ids: null,
title: Send message,
description: A webhook to send a coupon to the user.,
verb: POST,
url: www.my-company.com/my-endpoint-name,
headers: [{"Authorization": "Basic bmF2ZWVua3VtYXIU="}, {"Content-Type": "application/json"}],
payload: {
"message": "${message}"
},
params: [],
enabled: true)