Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 1.15 KB

NewNotificationTest.md

File metadata and controls

29 lines (22 loc) · 1.15 KB

TalonOne::NewNotificationTest

Properties

Name Type Description Notes
type String The notification type.
_query_params Hash<String, String> Array of query parameters. [optional]
headers Hash<String, String> List of API HTTP headers for the given webhook-based notification. [optional]
verb String API method for this notification.
url String API URL for the given notification.
payload String API payload of this notification.

Code Sample

require 'TalonOne'

instance = TalonOne::NewNotificationTest.new(type: loyalty_added_deducted_points,
                                 _query_params: {&quot;param1&quot;:&quot;value1&quot;,&quot;param2&quot;:&quot;value2&quot;},
                                 headers: {&quot;content-type&quot;:&quot;application/json&quot;},
                                 verb: POST,
                                 url: www.my-company.com/my-endpoint-name,
                                 payload: {
	&quot;message&quot;: &quot;${message}&quot;
})