Skip to content

Instantly share code, notes, and snippets.

1 - - 2
| |
| |
4 - - 3
#<struct ZenSend::SmsResponse tx_guid="c54ac21a-6851-4ea4-b371-a7c1b9c07f16", numbers=1,
sms_parts=1, encoding="gsm", cost_in_pence=2.3, new_balance_in_pence=56.3>
https://gist.github.com/david-dcp/d75cdc8ff972dd2039c3d512a14c3101
$ ruby send_sms.rb
#<struct ZenSend::SmsResponse tx_guid="c54ac21a-6851-4ea4-b371-a7c1b9c07f16", numbers=1,
sms_parts=1, encoding="gsm", cost_in_pence=2.3, new_balance_in_pence=56.3>
$ ruby send_sms.rb
#<struct ZenSend::SmsResponse tx_guid="c54ac21a-6851-4ea4-b371-a7c1b9c07f16", numbers=1, sms_parts=1, encoding="gsm", cost_in_pence=2.3, new_balance_in_pence=56.3>
$ ruby send_sms.rb
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.
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.
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.