Simplify Node.js API Docs

API Docs for:
Show:

Event Class

Defined in: simplify.js:165

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
)

Defined in simplify.js:189

Function to handle a Webhook event sent from Simplify.

Parameters:

  • params Object

    A 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 Function

    A 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.