Sha256: 3b0e70bcdbc0d5bf26d34768b96640d1d7c62ef8bde4dbc04ca6699f2a24a8c5
Contents?: true
Size: 536 Bytes
Versions: 7
Compression:
Stored size: 536 Bytes
Contents
$:.unshift(File.expand_path(File.join(File.dirname(__FILE__),"..", "lib"))) require 'ctm' access_token = CTM::Auth.authenticate(ENV['CTM_TOKEN'], ENV['CTM_SECRET']) account = access_token.accounts.first webhooks = account.webhooks puts "Webhooks #{webhooks.total_entries} within the Account" webhooks.each do|wh| puts "#{wh.id}: #{wh.weburl} #{wh.with_resource_url} -> #{wh.position}" end # get requests when the call starts webhook = webhooks.create(:weburl => "http://example.com/myhook", :position => "start") webhook.release!
Version data entries
7 entries across 7 versions & 1 rubygems