Sha256: 2a080d6c4248c13df2863d87e2388cd92f92feacd8468feaa0885ecf0e7b1258
Contents?: true
Size: 461 Bytes
Versions: 64
Compression:
Stored size: 461 Bytes
Contents
require "rubygems" require "plivo" include Plivo include Plivo::Exceptions AUTH_ID = "" AUTH_TOKEN = "" client = RestClient.new(AUTH_ID, AUTH_TOKEN) # if credentials are stored in the PLIVO_AUTH_ID and the PLIVO_AUTH_TOKEN environment variables # then initialize client as: # client = RestClient.new begin resp = client.lookup.get( "<insert-number-here>", "carrier" ) puts resp rescue PlivoRESTError => e puts "Exception: " + e.message end
Version data entries
64 entries across 64 versions & 1 rubygems