github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

lukeredpath / clickatell

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 83
    • 22
  • Source
  • Commits
  • Network (22)
  • Issues (1)
  • Downloads (1)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (1)
    • v0.7.1
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Ruby interface to the Clickatell SMS Gateway API — Read more

  cancel

http://clickatell.rubyforge.org

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Updated website 
lukeredpath (author)
Tue Dec 01 04:16:22 -0800 2009
commit  64e505b67e856190409d872bc958f4ca92d8746c
tree    5fc9c264fa3a4737475ea9846e48c22cac3f9d94
parent  dffd93137c800641a8dfce4731b3dc0bb0c65449
clickatell /
name age
history
message
file .gitignore Tue Dec 01 04:13:04 -0800 2009 Dont ignore gemspecs after all [lukeredpath]
file History.txt Tue Dec 01 04:06:54 -0800 2009 Updated project to use jeweler. [lukeredpath]
file License.txt Fri Aug 17 06:16:20 -0700 2007 Initial newgem import git-svn-id: svn://lukere... [luke]
file RDOC_README.txt Tue Aug 19 06:41:13 -0700 2008 Rename readme for Rdoc so it doesnt confuse github [lukeredpath]
file README.textile Wed Oct 07 02:35:47 -0700 2009 Updated readme and gemspec [lukeredpath]
file Rakefile Tue Dec 01 04:16:22 -0800 2009 Updated website [lukeredpath]
directory bin/ Tue Oct 06 10:47:25 -0700 2009 Updated the SMS utility to support comma-separa... [lukeredpath]
file clickatell.gemspec Tue Dec 01 04:16:22 -0800 2009 Updated website [lukeredpath]
directory lib/ Tue Dec 01 04:12:16 -0800 2009 Bumped version. [lukeredpath]
directory scripts/ Fri Aug 17 06:16:20 -0700 2007 Initial newgem import git-svn-id: svn://lukere... [luke]
directory spec/ Tue Dec 01 04:00:53 -0800 2009 Fixed broken message balance command. [lukeredpath]
directory website/ Tue Dec 01 04:16:22 -0800 2009 Updated website [lukeredpath]
README.textile

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’)

To send a message to multiple recipients, simply pass in an array of numbers.

api.send_message([‘447771234567’, ‘447771234568’], ‘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:

  1. ~/.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.

The sms utility also supports multiple, comma-separated recipients (up to 100).

sms 447771111111,447772222222 “Hello everyone”

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

Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server