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 (string hookUrl)
Add Webhook
Idempotently adds a Webhook url
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class AddWebHookExample
{
public void main()
{
// Configure OAuth2 access token for authorization: BBOAuth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new WebhooksApi();
var hookUrl = hookUrl_example; // string | The Url of your listener
try
{
// Add Webhook
BBWebHook result = apiInstance.AddWebHook(hookUrl);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling WebhooksApi.AddWebHook: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
hookUrl | string | The Url of your listener |
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
string DeleteWebHook (string hookId)
Deletes Webhook
Deletes a Webhook
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class DeleteWebHookExample
{
public void main()
{
// Configure OAuth2 access token for authorization: BBOAuth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new WebhooksApi();
var hookId = hookId_example; // string | The id of the webhook to delete
try
{
// Deletes Webhook
string result = apiInstance.DeleteWebHook(hookId);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling WebhooksApi.DeleteWebHook: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
hookId | string | The id of the webhook to delete |
string
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List GetWebHooks ()
Lists Webhooks
Lists all registered Webhooks
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class GetWebHooksExample
{
public void main()
{
// Configure OAuth2 access token for authorization: BBOAuth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new WebhooksApi();
try
{
// Lists Webhooks
List<BBWebHook> result = apiInstance.GetWebHooks();
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling WebhooksApi.GetWebHooks: " + e.Message );
}
}
}
}
This endpoint does not need any parameter.
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void ListWebHookEvents ()
Describe WebHook Events
Returns example Webhook events for each kind of possible event.
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class ListWebHookEventsExample
{
public void main()
{
var apiInstance = new WebhooksApi();
try
{
// Describe WebHook Events
apiInstance.ListWebHookEvents();
}
catch (Exception e)
{
Debug.Print("Exception when calling WebhooksApi.ListWebHookEvents: " + e.Message );
}
}
}
}
This endpoint does not need any parameter.
void (empty response body)
No authorization required
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void SendWebhookExample ()
Sends test Webhook
Triggers a test webhook to be sent to your endpoints.
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class SendWebhookExampleExample
{
public void main()
{
// Configure OAuth2 access token for authorization: BBOAuth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new WebhooksApi();
try
{
// Sends test Webhook
apiInstance.SendWebhookExample();
}
catch (Exception e)
{
Debug.Print("Exception when calling WebhooksApi.SendWebhookExample: " + e.Message );
}
}
}
}
This endpoint does not need any parameter.
void (empty response body)
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]