All URIs are relative to https://api.bombbomb.com/v2
| Method | HTTP request | Description |
|---|---|---|
| add_web_hook | POST /webhook | Add Webhook |
| delete_web_hook | DELETE /webhook/{hookId} | Deletes Webhook |
| get_web_hooks | GET /webhook/ | Lists Webhooks |
| list_web_hook_events | GET /webhook/events | Describe WebHook Events |
| send_webhook_example | POST /webhook/test | Sends test Webhook |
BBWebHook add_web_hook(hook_url)
Add Webhook
Idempotently adds a Webhook url
# load the gem
require 'bombbomb'
# setup authorization
BombBomb.configure do |config|
# Configure OAuth2 access token for authorization: BBOAuth2
config.access_token = 'YOUR ACCESS TOKEN'
end
api_instance = BombBomb::WebhooksApi.new
hook_url = "hook_url_example" # String | The Url of your listener
begin
#Add Webhook
result = api_instance.add_web_hook(hook_url)
p result
rescue BombBomb::ApiError => e
puts "Exception when calling WebhooksApi->add_web_hook: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| hook_url | String | The Url of your listener |
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
String delete_web_hook(hook_id)
Deletes Webhook
Deletes a Webhook
# load the gem
require 'bombbomb'
# setup authorization
BombBomb.configure do |config|
# Configure OAuth2 access token for authorization: BBOAuth2
config.access_token = 'YOUR ACCESS TOKEN'
end
api_instance = BombBomb::WebhooksApi.new
hook_id = "hook_id_example" # String | The id of the webhook to delete
begin
#Deletes Webhook
result = api_instance.delete_web_hook(hook_id)
p result
rescue BombBomb::ApiError => e
puts "Exception when calling WebhooksApi->delete_web_hook: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| hook_id | String | The id of the webhook to delete |
String
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
Array<BBWebHook> get_web_hooks
Lists Webhooks
Lists all registered Webhooks
# load the gem
require 'bombbomb'
# setup authorization
BombBomb.configure do |config|
# Configure OAuth2 access token for authorization: BBOAuth2
config.access_token = 'YOUR ACCESS TOKEN'
end
api_instance = BombBomb::WebhooksApi.new
begin
#Lists Webhooks
result = api_instance.get_web_hooks
p result
rescue BombBomb::ApiError => e
puts "Exception when calling WebhooksApi->get_web_hooks: #{e}"
endThis endpoint does not need any parameter.
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
list_web_hook_events
Describe WebHook Events
Returns example Webhook events for each kind of possible event.
# load the gem
require 'bombbomb'
api_instance = BombBomb::WebhooksApi.new
begin
#Describe WebHook Events
api_instance.list_web_hook_events
rescue BombBomb::ApiError => e
puts "Exception when calling WebhooksApi->list_web_hook_events: #{e}"
endThis endpoint does not need any parameter.
nil (empty response body)
No authorization required
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
send_webhook_example
Sends test Webhook
Triggers a test webhook to be sent to your endpoints.
# load the gem
require 'bombbomb'
# setup authorization
BombBomb.configure do |config|
# Configure OAuth2 access token for authorization: BBOAuth2
config.access_token = 'YOUR ACCESS TOKEN'
end
api_instance = BombBomb::WebhooksApi.new
begin
#Sends test Webhook
api_instance.send_webhook_example
rescue BombBomb::ApiError => e
puts "Exception when calling WebhooksApi->send_webhook_example: #{e}"
endThis endpoint does not need any parameter.
nil (empty response body)
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json