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) 373 Bytes
# frozen_string_literal: true
require 'dotenv/load'
require 'nexmo'
NEXMO_API_KEY = ENV['NEXMO_API_KEY']
NEXMO_API_SECRET = ENV['NEXMO_API_SECRET']
client = Nexmo::Client.new(
api_key: NEXMO_API_KEY,
api_secret: NEXMO_API_SECRET
)
result = client.secrets.list
result._embedded.secrets.each do |secret|
puts "ID: #{secret.id} created on #{secret.created_at}"
end
You can’t perform that action at this time.