Sha256: 8fe57d8d22b3382ad85cc3856d9b6a9ef4288ce6a150857e423e4ddbdf1a73e3
Contents?: true
Size: 610 Bytes
Versions: 7
Compression:
Stored size: 610 Bytes
Contents
$:.unshift File.join(File.dirname(__FILE__), '..', '..', '..', 'lib') $:.unshift File.join(File.dirname(__FILE__), '..', '..', '..') require 'connfu' require 'examples/provisioning/setup' ARGV.length < 2 and ( puts "Please include as argument the api_key and the channel name to be used" exit ) api_key = ARGV.shift channel_name = ARGV.shift application = Connfu::Provisioning::Application.new(api_key, CONNFU_ENDPOINT) begin puts application.create_voice_channel(channel_name, "uk") rescue Exception => ex puts "There was an error: #{ex.inspect}" puts "Exception message: #{ex.message}" end
Version data entries
7 entries across 7 versions & 1 rubygems