Sha256: dd4ac43c55b3e6a370663b43823217a5487717c7a86cc4ca67eb0f4d21676c35

Contents?: true

Size: 690 Bytes

Versions: 4

Compression:

Stored size: 690 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, the channel and the dtmf (optional) to be deleted"
  exit
)

api_key = ARGV.shift
channel = ARGV.shift
dtmf = if ARGV.length < 1
         ""
       else
         ARGV.shift
       end


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

begin
  puts application.delete_dtmf(channel, dtmf)
rescue Exception => ex
  puts "There was an error:"
  puts "Exception message: #{ex.message}"
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
connfu-client-0.1.6 examples/provisioning/voice/dtmf/delete.rb
connfu-client-0.1.5 examples/provisioning/voice/dtmf/delete.rb
connfu-client-0.1.4 examples/provisioning/voice/dtmf/delete.rb
connfu-client-0.1.3 examples/provisioning/voice/dtmf/delete.rb