Sha256: aff8e66f4c4d17ec2c6a5731b96c603b09131f44846396d123a4184087196e15

Contents?: true

Size: 624 Bytes

Versions: 7

Compression:

Stored size: 624 Bytes

Contents

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

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

require 'connfu'

require 'examples/provisioning/setup'

ARGV.length < 3 and
(
  puts "Please include as argument the api_key, the channel and the new topic value to be used"
  exit
)

api_key = ARGV.shift
channel = ARGV.shift
topic = ARGV.shift


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

begin
  puts application.update_voice_channel(channel, topic)

rescue Exception => ex
  puts "There was an error:"
  puts "Exception message: #{ex.message}"
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
connfu-client-0.1.6 examples/provisioning/twitter/put.rb
connfu-client-0.1.5 examples/provisioning/twitter/put.rb
connfu-client-0.1.4 examples/provisioning/twitter/put.rb
connfu-client-0.1.3 examples/provisioning/twitter/put.rb
connfu-client-0.1.2 examples/provisioning/twitter/put.rb
connfu-client-0.1.1 examples/provisioning/twitter/put.rb
connfu-client-0.1 examples/provisioning/twitter/put.rb