• This repository has been archived on 04/Apr/2024
  • Stars
    star
    138
  • Rank 264,508 (Top 6 %)
  • Language
    Ruby
  • License
    MIT License
  • Created over 16 years ago
  • Updated over 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

NO LONGER SUPPORTED - Ruby interface to the Clickatell SMS Gateway API

5 Aug 2013 – This library is no longer supported or maintained. A more recent Clickatell library can be found here https://github.com/xploshioOn/clickatellsend

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

HTTP Proxy

You can configure the library to use a HTTP proxy when communicating with Clickatell.


  Clickatell::API.proxy_host     = 'my.proxy.com'
  Clickatell::API.proxy_port     = 1234
  Clickatell::API.proxy_username = 'joeschlub'
  Clickatell::API.proxy_password = 'secret'

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.

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.

More Repositories

1

LRResty

Yet another Objective-C REST client library, inspired by Ruby's restclient gem.
Objective-C
461
star
2

LROAuth2Client

OAuth2 client for iPhone and iPad apps
Objective-C
303
star
3

betabuilder

A collection of Rake tasks for managing and distributing iOS ad-hoc builds
Ruby
214
star
4

LRSlidingTableViewCell

A simple implementation of sliding table cells, ala Twitter for iPhone
Objective-C
189
star
5

RestfulCoreData

An attempt to come up with a sane web API to Core Data synching pattern, using the Pivotal Tracker API.
Objective-C
155
star
6

mimic

A Ruby gem for faking external web services for testing
Ruby
150
star
7

xcodebuild-rb

Ruby
143
star
8

simpleconfig

Simple Config is a plugin designed to make application-wide configuration settings easy to set and access in an object-oriented fashion.
Ruby
128
star
9

swift-responsive-textfield

A SwiftUI wrapper around UITextField with binding-based state and responder control
Swift
86
star
10

xcodesnippets

A command-line utility for managing Xcode 4 code snippets
Ruby
85
star
11

LROAuth2Demo

A demo project for the LROAuth2Client library
Objective-C
59
star
12

LRTableModel

The missing abstraction between UITableView, it's data source, and your domain model
Objective-C
52
star
13

LRMocky

A port of jMock 2.0 for Objective-C
Perl
38
star
14

PusherChat-iPhone

An iPhone client for the PusherChat-Rails example app, using libPusher
Objective-C
35
star
15

LRToolkit

A collection of useful classes and categories I use in my iPhone and iPad projects
Objective-C
32
star
16

session-timeout

A simple dynamic session expiry/timeout plugin for Rails
Ruby
27
star
17

LRLinkableLabel

UILabel replacement with support for linkable strings
Objective-C
25
star
18

LRFetchedResultSet

Objective-C
21
star
19

AutomationKit

An automated UI testing framework for iOS
Objective-C
20
star
20

LRMimic

An Objective-C client for the Mimic REST API
Objective-C
17
star
21

hsbcscraper

Web scraper for downloading statements from HSBC Business Banking
Ruby
15
star
22

swift-coding

A protocol-witness oriented library built on top of Codable
Swift
14
star
23

swift-validations

A high-level functional validation library, written in Swift
Swift
13
star
24

oauth-pkce-ios-client

A small example of how to use OAuth in a SwiftUI app with PKCE
Swift
13
star
25

beanstalk-messaging

Ruby
12
star
26

xcodebuild-outputparser

A small Ruby library for parsing the results of the xcodebuild command, particularly tests
Ruby
10
star
27

iPhoneAuctionSniper

An example of TDD iPhone development using mocks and Cucumber for high-level tests
Objective-C
9
star
28

ripperhud-toolkit

A Sinatra app and collection of Ruby scripts to help organise your downloaded and ripped DVD collection
8
star
29

ujs4rails

Unobtrusive Javascript for Rails
Ruby
8
star
30

oauth-pkce-proxy

Proof of concept OAuth provider proxy server that adds PKCE support for public clients
Ruby
8
star
31

LRRemoteImage

A really simple class to handle remote images
Objective-C
7
star
32

coopexport

Statement exporter for The Co-Operative Bank internet banking website
Ruby
7
star
33

dotfiles

My public dotfiles
Shell
7
star
34

uiautomation-rb

Ruby
6
star
35

SqueezeSlaveMenu

An OSX menu bar app for controlling SqueezeSlave
Objective-C
5
star
36

AdventOfCode2022

Swift
4
star
37

github-downloads

A simple gem for managing your Github project uploads
Ruby
4
star
38

blogdata

Data for my Marley-powered blog
3
star
39

tca-navigation-demo

Experimenting with swiftui-navigation and TCA.
Swift
3
star
40

AdventOfCode2021

Swift
3
star
41

TCANavigationStacks

Exploring the new iOS 16 APIs with TCA.
Swift
2
star
42

LRRestyMacDemo

A Mac demo project that uses LRResty as a framework
Objective-C
2
star
43

Bundler.tmbundle

Ruby
2
star
44

minisculus

Ruby
2
star
45

moviesort

A ruby script for sorting TV shows
Ruby
2
star
46

mpsontwitter.co.uk

Source code for mpsontwitter.co.uk
Ruby
2
star
47

lukeredpath

2
star
48

appium-ios-examples

Examples of using the appium-ios-driver library
Ruby
1
star
49

.vim

Vim Script
1
star
50

LRMiniServerKit

1
star
51

squeezeslave

A Git mirror of the Squeezeslave project
C
1
star
52

musickit-graphql

An experimental GraphQL wrapper for the MusicKit REST API, written in Ruby
Ruby
1
star
53

MimicCocoaSpecDemo

An example of using the Mimic gem to stub network requests from within an Objective-C test case
C
1
star
54

LRBindableObjects

THIS IS JUST A PROOF OF CONCEPT - DO NOT USE!
Objective-C
1
star