The resources responsible for managing Webhooks
-
netField.webhooks.getAll(organisationId, [page, limit, sortBy, sortOrder, callback])
-
netField.webhooks.update(webhookId, params, [options], [callback])
Get list of webhooks
/**
* @param {number} organisationId
* @param {any} options optional
* @param {function} callback optional
*/
netField.webhooks.getAll(organisationId, [options], [callback])
Get a webhook
/**
* @param {string} webhookId
* @param {any} options optional
* @param {function} callback optional
*/
netField.webhooks.get(webhookId, [options], [callback])
Adds a new webhook
/**
* @param {any} params
* @param {function} callback optional
*/
netField.webhooks.create(params, [options], [callback])
Updates a webhook
/**
* @param {string} webhookId
* @param {any} params
* @param {function} callback optional
*/
netField.webhooks.update(webhookId, params, [callback])
Delete a webhook
/**
* @param {string} webhookId
* @param {function} callback optional
*/
netField.webhooks.delete(webhookId, [callback])
Trigger a single webhook for testing purposes
/**
* @param {any} params
* @param {function} callback optional
*/
netField.webhooks.test(params, [callback])