This file contains 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
~ $ 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 |
This file contains 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("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. |
This file contains 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("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. |
This file contains 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. |
This file contains 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
$ ruby send_sms.rb |
This file contains 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
$ 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> |
This file contains 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
$ 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> |
This file contains 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
$ ruby send_sms.rb |
This file contains 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
https://gist.github.com/david-dcp/d75cdc8ff972dd2039c3d512a14c3101 |
This file contains 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
#<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> |
OlderNewer