Sha256: 1f56167a4fdab4095f3f4ff94fdc144c60733d8209bc6fb92a546797bb41da2d

Contents?: true

Size: 644 Bytes

Versions: 7

Compression:

Stored size: 644 Bytes

Contents

$:.unshift File.join(File.dirname(__FILE__), '..', '..', '..', '..', 'lib')

$:.unshift File.join(File.dirname(__FILE__), '..', '..', '..', '..')

require 'connfu'

require 'examples/provisioning/setup'

ARGV.length < 4 and
(
  puts "Please include as argument the api_key, channel, whitelist name and whitelist number to be used"
  exit
)

api_key = ARGV.shift
channel_name = ARGV.shift

application = Connfu::Provisioning::Application.new(api_key, CONNFU_ENDPOINT)

begin
  puts application.add_whitelist(channel_name, ARGV.shift, ARGV.shift)
rescue Exception => ex
  puts "There was an error:"
  puts "Exception message: #{ex.inspect}"
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
connfu-client-0.1.6 examples/provisioning/voice/whitelist/create.rb
connfu-client-0.1.5 examples/provisioning/voice/whitelist/create.rb
connfu-client-0.1.4 examples/provisioning/voice/whitelist/create.rb
connfu-client-0.1.3 examples/provisioning/voice/whitelist/create.rb
connfu-client-0.1.2 examples/provisioning/voice/whitelist/create.rb
connfu-client-0.1.1 examples/provisioning/voice/whitelist/create.rb
connfu-client-0.1 examples/provisioning/voice/whitelist/create.rb