Skip to content

threez/smspromote

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SMS Promote Ruby Bindings

This is a ruby gem that helps you sending sms using the 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

About

helps sending sms using the smspromote.de sms gateway

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages