Sha256: b42519e910f8dd51118e119320817c646818f666c953f7fac23d753b7ca4fccd

Contents?: true

Size: 1.22 KB

Versions: 12

Compression:

Stored size: 1.22 KB

Contents

= Clickatell SMS Library

To use this gem, you will need sign up for an account at www.clickatell.com. Once you are registered and logged into your account centre, you should add an HTTP API connection to your account. This will give you your API_ID.

== Basic Usage

You will need your API_ID as well as your account username and password.

  require 'rubygems'
  require 'clickatell'
  
  api = Clickatell::API.authenticate('your_api_id', 'your_username', 'your_password')
  api.send_message('447771234567', 'Hello from clickatell')

  
== Command-line SMS Utility

The Clickatell gem also comes with a command-line utility that will allow you to send an SMS directly from the command-line. 

You will need to create a YAML configuration file in your home directory, in a file called .clickatell that resembles the following:

  # ~/.clickatell
  api_key: your_api_id
  username: your_username
  password: your_password
  
You can then use the sms utility to send a message to a single recipient:

  sms 447771234567 'Hello from clickatell'
  
Alternatively, you can specify the username and password as a command line option. Run +sms+ without any arguments for a full list of options.

See http://clickatell.rubyforge.org for further instructions.  

Version data entries

12 entries across 12 versions & 5 rubygems

Version Path
commonthread-clickatell-0.5.1 RDOC_README.txt
commonthread-clickatell-0.5.2 RDOC_README.txt
lookout-clickatell-0.8.3 RDOC_README.txt
clickatell-0.8.2 RDOC_README.txt
clickatell-0.8.1 RDOC_README.txt
clickatell-0.8.0 RDOC_README.txt
clickatell-ruby19-0.7.1 RDOC_README.txt
clickatell-0.7.1 RDOC_README.txt
dimiro1-clickatell-0.7.0 RDOC_README.txt
clickatell-0.7.0 RDOC_README.txt
clickatell-0.6.0 RDOC_README.txt
clickatell-0.5.0 README.txt