Event Class
This class is a Simplify domain object for handling events.
var client = Simplify.getClient({
publicKey: 'YOUR_PUBLIC_API_KEY',
privateKey: 'YOUR_PRIVATE_API_KEY'
});
client.event.create(params, function(error, data){
if(error){
// handle the error
}
// Awesome...no error, handle the data
});
Item Index
Methods
Methods
create
(
-
params
-
callback
Function to handle a Webhook event sent from Simplify.
Parameters:
-
params
ObjectA map of parameters to create an event with
- payload : The payload of the webhook event (REQUIRED)
- url : The url of the webhook for this event (REQUIRED)
-
callback
FunctionA function to handle success/error responses from the API.
The function takes 2 parameters, the first is an error object. This is null if no error occurs. The second parameter is the response data. This is null if an error occurs.