Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (13 sloc) 339 Bytes
require 'dotenv/load'
require 'nexmo'
NEXMO_API_KEY = ENV['NEXMO_API_KEY']
NEXMO_API_SECRET = ENV['NEXMO_API_SECRET']
INSIGHT_NUMBER = ENV['INSIGHT_NUMBER']
client = Nexmo::Client.new(
api_key: NEXMO_API_KEY,
api_secret: NEXMO_API_SECRET
)
insight = client.number_insight.advanced(
number: INSIGHT_NUMBER
)
puts insight.inspect
You can’t perform that action at this time.