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

Version Path
plivo-4.61.2 examples/lookup.rb
plivo-4.61.1 examples/lookup.rb
plivo-4.61.0 examples/lookup.rb
plivo-4.60.3 examples/lookup.rb
plivo-4.60.2 examples/lookup.rb
plivo-4.60.1 examples/lookup.rb
plivo-4.60.0 examples/lookup.rb
plivo-4.59.1 examples/lookup.rb
plivo-4.59.0 examples/lookup.rb
plivo-4.56.0 examples/lookup.rb
plivo-4.55.2 examples/lookup.rb
plivo-4.55.1 examples/lookup.rb
plivo-4.55.0 examples/lookup.rb
plivo-4.54.0 examples/lookup.rb
plivo-4.53.1 examples/lookup.rb
plivo-4.53.0 examples/lookup.rb
plivo-4.52.0 examples/lookup.rb
plivo-4.51.0 examples/lookup.rb
plivo-4.50.0 examples/lookup.rb
plivo-4.49.0 examples/lookup.rb