Skip to content

Instantly share code, notes, and snippets.

David Pereira david-dcp

Block or report user

Report or block david-dcp

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:c93f166ac4e7feafdc4b0d516e2aeeb0
#<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>
View gist:d3384907c5492f1fb4bbfa5f3f32be84
https://gist.github.com/david-dcp/d75cdc8ff972dd2039c3d512a14c3101
View gist:518317c1adf412383f026063f7a2d5e9
$ 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>
View gist:03818371e01023da2e6d3c5dd43e6d9b
$ 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>
View example.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.
View example.rb
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.
View gist:667ac4eb6c9ebfcb02c158b9092a91f5
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.
View gist:d2d0a96b0eb63cad5fdfa6774fe969e5
~ $ ruby --version
ruby 2.0.0p648 (2015-12-16 revision 53162) [universal.x86_64-darwin16]
~ $ gem install zensend
Fetching: zensend-0.0.2.gem (100%)
Successfully installed zensend-0.0.2
Parsing documentation for zensend-0.0.2
Installing ri documentation for zensend-0.0.2
Done installing documentation for zensend after 0 seconds
1 gem installed
You can’t perform that action at this time.