Skip to content

Latest commit

 

History

History
38 lines (32 loc) · 1.36 KB

WebhookCreatePayload.md

File metadata and controls

38 lines (32 loc) · 1.36 KB

ElasticEmail::WebhookCreatePayload

Properties

Name Type Description Notes
name String Filename
url String URL of notification.
notify_once_per_email Boolean [optional]
notification_for_sent Boolean [optional]
notification_for_opened Boolean [optional]
notification_for_clicked Boolean [optional]
notification_for_unsubscribed Boolean [optional]
notification_for_abuse_report Boolean [optional]
notification_for_error Boolean [optional]
enable_signing Boolean Sign every request with HMAC-SHA256. Can be set only when the webhook is created. Default: false. [optional]
delivery_method WebhookDeliveryMethod [optional][default to 'Get']

Example

require 'ElasticEmail'

instance = ElasticEmail::WebhookCreatePayload.new(
  name: attachment.txt,
  url: http://address.for.notification.com,
  notify_once_per_email: null,
  notification_for_sent: null,
  notification_for_opened: null,
  notification_for_clicked: null,
  notification_for_unsubscribed: null,
  notification_for_abuse_report: null,
  notification_for_error: null,
  enable_signing: null,
  delivery_method: null
)