Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 9149166920
Fetching contributors…

Cannot retrieve contributors at this time

32 lines (22 sloc) 0.711 kB
= TWSMS examples
== Send a SMS Message
require 'rubygems'
require 'twsms'
sms = SMS.new("username", "password")
msg = %q|This is a message|
sms.sendSMS("0987654321", msg)
sms.sendSMS("0987-654321", msg)
sms.sendSMS("0987-654-321", msg)
== Send a SMS Message and do a query about the message we sent.
require 'rubygems'
require 'twsms'
sms = SMS.new("username", "password")
msg = %q|This is a message|
sms.sendSMS("0987654321", msg)
sms.querySMS
== Query a SMS Message ( Before this, you must have a message id to query )
require 'rubygems'
require 'twsms'
sms = TWSMS.new("username", "password")
sms.setMessageId("65432")
sms.querySMS
Jump to Line
Something went wrong with that request. Please try again.