Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (12 sloc) 382 Bytes
# frozen_string_literal: true
require 'dotenv/load'
require 'nexmo'
NEXMO_API_KEY = ENV['NEXMO_API_KEY']
NEXMO_API_SECRET = ENV['NEXMO_API_SECRET']
NEXMO_SECRET_ID = ENV['NEXMO_SECRET_ID']
client = Nexmo::Client.new(
api_key: NEXMO_API_KEY,
api_secret: NEXMO_API_SECRET
)
result = client.secrets.get(NEXMO_SECRET_ID)
puts "ID: #{result.id} created on #{result.created_at}"
You can’t perform that action at this time.