Skip to content

Instantly share code, notes, and snippets.

@mdeiters
Created April 29, 2010 10:06
Show Gist options
  • Save mdeiters/383394 to your computer and use it in GitHub Desktop.
Save mdeiters/383394 to your computer and use it in GitHub Desktop.
# 1. Register for an account at clickatell (), you should get 10 free sms messages
# 2. Install the clickatell gem by typinging: gem install clickatell
# Documentation: http://github.com/lukeredpath/clickatell
api_id = ENV['CLICKATELL_ID']
username = ENV['CLICKATELL_USERNAME']
password = ENV['CLICKATELL_PASSWORD']
require 'rubygems'
require 'clickatell'
api = Clickatell::API.authenticate(api_id, username, password)
api.send_message('250788465590', 'How easy is that to spam Jean Baptist')
# run this command:
# ruby sending_sms.rb CLICKATELL_ID=x CLICKATELL_USERNAME=y CLICKATELL_PASSWORD=z
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment