https://github.com/threez/smspromote
helps sending sms using the smspromote.de sms gateway
https://github.com/threez/smspromote
Last synced: 11 months ago
JSON representation
helps sending sms using the smspromote.de sms gateway
- Host: GitHub
- URL: https://github.com/threez/smspromote
- Owner: threez
- License: mit
- Created: 2010-07-11T12:10:13.000Z (almost 16 years ago)
- Default Branch: master
- Last Pushed: 2011-04-03T10:43:00.000Z (over 15 years ago)
- Last Synced: 2025-08-09T12:52:01.957Z (11 months ago)
- Language: Ruby
- Homepage:
- Size: 105 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.rdoc
- License: LICENSE
Awesome Lists containing this project
README
= SMS Promote Ruby Bindings
This is a ruby gem that helps you sending sms using the http://smspromote.de
service. To start follow the instructions:
Save your api key in a keystore:
echo "SECRETKEYJHKSJH123123LKJ" > ~/.smspromote.key
Create a new ruby source file with the following script
require "rubygems"
require "smspromote"
API_KEY = SmsPromote::Gateway.read_api_key_from_file
GATEWAY = SmsPromote::Gateway.new(API_KEY, :secure => true,
:originator => "MY SERVICE OR NUMBER")
msg = SmsPromote::Message.new('001231231231', 'Hello World')
GATEWAY.send_message(msg)
p msg.delivered?
p msg.cost