Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (10 sloc) 369 Bytes
require 'dotenv/load'
require 'nexmo'
NEXMO_APPLICATION_ID = ENV['NEXMO_APPLICATION_ID']
NEXMO_APPLICATION_PRIVATE_KEY_PATH = ENV['NEXMO_APPLICATION_PRIVATE_KEY_PATH']
client = Nexmo::Client.new(
application_id: NEXMO_APPLICATION_ID,
private_key: File.read(NEXMO_APPLICATION_PRIVATE_KEY_PATH)
)
response = client.calls.get(NEXMO_CALL_UUID)
puts response.inspect
You can’t perform that action at this time.