Wrapper for the Unify Circuit Rest API
See
Ruby 2.0+.
source 'https://rubygems.org'
gem 'circuit-api'
The library needs to be configured with your account's secret key value:
require 'circuit_api'
CircuitApi::Client.new(
client_id: 'client id',
client_secret: 'client secret',
sandbox: false,
instance_url: 'https://eu.yourcircuit.com/'
)
client.connect('oauth token')
Query for the list of webhooks:
webhooks = client.webhooks.all
webhooks.first.id
Run all tests:
bundle exec rspec