Sha256: fd7f14913593565066feb9a46468977fd4477e14c0b1643809bc0b930d2d72e4
Contents?: true
Size: 681 Bytes
Versions: 4
Compression:
Stored size: 681 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, the channel name, the tone and the message to be used" exit ) api_key = ARGV.shift channel_name = ARGV.shift tone = ARGV.shift message = ARGV.shift application = Connfu::Provisioning::Application.new(api_key, CONNFU_ENDPOINT) begin puts application.add_dtmf(channel_name, tone, message) rescue Exception => ex puts "There was an error: #{ex.inspect}" puts "Exception message: #{ex.message}" end
Version data entries
4 entries across 4 versions & 1 rubygems