Created
March 23, 2017 15:43
-
-
Save david-dcp/fb8bf40928b41281b3876d08a0f3e675 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'zensend' | |
client = ZenSend::Client.new("auxX2MQV4bTI23kemRUr2g") | |
begin | |
result = client.send_sms( | |
originator: "FromZensend", | |
# Add your number here to send a message to yourself | |
# The number should be in international format. | |
# For example GB numbers will be 447400123456 | |
numbers: ["004479xxxxxxxx"], | |
body: "Hello World - from Zensend!" | |
) | |
puts result.inspect | |
rescue ZenSend::ZenSendException => e | |
puts "ZenSendException: #{e.parameter} => #{e.failcode}" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment