All URIs are relative to https://api.bombbomb.com/v2
Method | HTTP request | Description |
---|---|---|
addWebHook | POST /webhook | Add Webhook |
deleteWebHook | DELETE /webhook/{hookId} | Deletes Webhook |
getWebHooks | GET /webhook/ | Lists Webhooks |
listWebHookEvents | GET /webhook/events | Describe WebHook Events |
sendWebhookExample | POST /webhook/test | Sends test Webhook |
BBWebHook addWebHook(hookUrl)
Add Webhook
Idempotently adds a Webhook url
var Bombbomb = require('bombbomb');
var defaultClient = Bombbomb.ApiClient.instance;
// Configure OAuth2 access token for authorization: BBOAuth2
var BBOAuth2 = defaultClient.authentications['BBOAuth2'];
BBOAuth2.accessToken = 'YOUR ACCESS TOKEN';
var apiInstance = new Bombbomb.WebhooksApi();
var hookUrl = "hookUrl_example"; // String | The Url of your listener
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.addWebHook(hookUrl, callback);
Name | Type | Description | Notes |
---|---|---|---|
hookUrl | String | The Url of your listener |
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
'String' deleteWebHook(hookId)
Deletes Webhook
Deletes a Webhook
var Bombbomb = require('bombbomb');
var defaultClient = Bombbomb.ApiClient.instance;
// Configure OAuth2 access token for authorization: BBOAuth2
var BBOAuth2 = defaultClient.authentications['BBOAuth2'];
BBOAuth2.accessToken = 'YOUR ACCESS TOKEN';
var apiInstance = new Bombbomb.WebhooksApi();
var hookId = "hookId_example"; // String | The id of the webhook to delete
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.deleteWebHook(hookId, callback);
Name | Type | Description | Notes |
---|---|---|---|
hookId | String | The id of the webhook to delete |
'String'
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
[BBWebHook] getWebHooks()
Lists Webhooks
Lists all registered Webhooks
var Bombbomb = require('bombbomb');
var defaultClient = Bombbomb.ApiClient.instance;
// Configure OAuth2 access token for authorization: BBOAuth2
var BBOAuth2 = defaultClient.authentications['BBOAuth2'];
BBOAuth2.accessToken = 'YOUR ACCESS TOKEN';
var apiInstance = new Bombbomb.WebhooksApi();
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getWebHooks(callback);
This endpoint does not need any parameter.
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
listWebHookEvents()
Describe WebHook Events
Returns example Webhook events for each kind of possible event.
var Bombbomb = require('bombbomb');
var apiInstance = new Bombbomb.WebhooksApi();
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.listWebHookEvents(callback);
This endpoint does not need any parameter.
null (empty response body)
No authorization required
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
sendWebhookExample()
Sends test Webhook
Triggers a test webhook to be sent to your endpoints.
var Bombbomb = require('bombbomb');
var defaultClient = Bombbomb.ApiClient.instance;
// Configure OAuth2 access token for authorization: BBOAuth2
var BBOAuth2 = defaultClient.authentications['BBOAuth2'];
BBOAuth2.accessToken = 'YOUR ACCESS TOKEN';
var apiInstance = new Bombbomb.WebhooksApi();
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.sendWebhookExample(callback);
This endpoint does not need any parameter.
null (empty response body)
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json