Project

smspromote

0.0
No commit activity in last 3 years
No release in over 3 years
Library that provides access to the smspromote.de sms gateway service.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0
 Project Readme

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