module WOTC::Client::Webhooks

Defines methods related to webhooks.

Public Instance Methods

create_webhook(options = {}) click to toggle source

Create a webhook

# File lib/wotc/client/webhooks.rb, line 11
def create_webhook(options = {})
  post('webhooks', options)
end
delete_webhook(webhook_id) click to toggle source

Delete a webhook

# File lib/wotc/client/webhooks.rb, line 21
def delete_webhook(webhook_id)
  delete("webhooks/#{webhook_id}")
end
update_webhook(webhook_id, options = {}) click to toggle source

Update a webhook

# File lib/wotc/client/webhooks.rb, line 16
def update_webhook(webhook_id, options = {})
  put("webhooks/#{webhook_id}", options)
end
webhooks(options={}) click to toggle source

List company webhooks

# File lib/wotc/client/webhooks.rb, line 6
def webhooks(options={})
  paginate('webhooks')
end