GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
WWW::TWSMS(3) User Contributed Perl Documentation WWW::TWSMS(3)

WWW::TWSMS - Perl extension for send sms by TWSMS. (http://www.twsms.com)

  use WWW::TWSMS;
  $sms = WWW::TWSMS->new(Username => "username", 
                         Password => "password", 
                         SmsType => 'now', 
                         SmsEncoding => 'big5'
                        );
  $sms->msgReceiver("phone_number");
  $sms->msgData("hello world");
  $sms->msgSend();
  $sms->success() or die $sms->errorDescription."\n" ;

This's a Perl interface for send sms by TWSMS. (http://www.twsms.com)

$sms = new WWW::TWSM->new(Username => 'uname', Password => 'password', ...)

The following arguments may be passed to new as a hash.

Username
Your Username in the website of TWSMS
Password
Your Password in the website of TWSMS
SmsType
default 'now', [dlv]

'now' mean send SMS now. 'dlv' mean send SMS at a reserved time.

SmsPopup
default '',[1]

if SmsPopup = 1

mean the SMS context will show on the screen of Receiver's mobile phone,

but will not save into Receiver's mobile phone.

SmsMo
default '', micro-seconds before retry
SmsEncoding
default 'big5' , ['ascii','unicode','push','unpush']

big5: the SMS context in Chinese or Engilsh, the max of SMS context length is 70 character. ascii: the SMS context in Engilsh, the max of SMS context length is 160 character. unicode: the SMS context in Unicode.

SmsVldtime
SmsVldtime mean the available time of SMS.

Its unit in sec. Example: 86400 (mean 24 hours)

SmsDlvtime
SmsDlvtime mean send SMS at a reserved time.

Its format is YYYYMMDDHHII.

Example: 200607291730 (mean 2006/07/29 17:30)

None by default.

The API document of TWSMS

http://www.twsms.com/dl/api_doc.zip

You can find information about TWSMS at :

   http://www.twsms.com/

Tsung-Han Yeh, <snowfly@yuntech.edu.tw>

Copyright (C) 2006 by Tsung-Han Yeh

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.

Hey! The above document had some coding errors, which are explained below:
Around line 332:
You forgot a '=back' before '=head2'
2006-07-30 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.