Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (15 sloc) 344 Bytes
require 'dotenv/load'
require 'nexmo'
NEXMO_API_KEY = ENV['NEXMO_API_KEY']
NEXMO_API_SECRET = ENV['NEXMO_API_SECRET']
TO_NUMBER = ENV['TO_NUMBER']
client = Nexmo::Client.new(
api_key: NEXMO_API_KEY,
api_secret: NEXMO_API_SECRET
)
client.sms.send(
from: 'Acme Inc',
to: TO_NUMBER,
text: 'こんにちは世界',
type: "unicode"
)
You can’t perform that action at this time.