Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'zensend'
- client = ZenSend::Client.new("demo_psfeZaipx8P12gBJotkzQ4XNB/xPJ6rP1HbvfS2qftI=")
- begin
- result = client.send_sms(
- originator: "Zensend",
- # 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: ["XXXXXXXXXXXX"],
- body: "Hello from Zensend"
- )
- puts result.inspect
- rescue ZenSend::ZenSendException => e
- puts "ZenSendException: #{e.parameter} => #{e.failcode}"
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement