NAME
SMS::MT::Service::Simplewire - SMS::MT plugin module.
SYNOPSIS
use SMS::MT;
my $sm = new SMS::MT('UID' => 'joeblow',
'PWD' => 'secret',
'PLUGIN' => 'Simplewire');
DESCRIPTION
This package contains a class for creating a standalone object or an object that acts as a plugin for a SMS::MT receptor object. See the SMS::MT documentation for details. This class sends mobile terminated SMS's via the interfaces of http://www.simplewire.com .
CLASS METHODS
- new ('UID' => $userid, 'PWD' => $password);
-
Returns a new SMS::MT::Service::Simplewire object.
- get_max_text_length()
-
Returns the maximum text length supported by this service.
- get_service_name()
-
Returns the descriptive SMS service name.
OBJECT METHODS
- get_last_error_code()
-
Returns the last service specific error code. Below is a list of codes and messages specific to this service:
96 Blocked account 97 Parameter syntax error 98 Insufficient balance 99 Login failed
- get_last_error_message()
-
Returns the last service specific error message. See
get_last_error_code
. - send_groupicon()
-
See SMS::MT documentation.
- send_logo()
-
See SMS::MT documentation.
- send_picture()
-
See SMS::MT documentation.
- send_ringtone()
-
See SMS::MT documentation.
- send_text()
-
See SMS::MT documentation.
SUPPORTED OPTIONAL PARAMETERS TO send*() METHODS
All send*() methods support optional parameters that are passed as a reference to a hash.
Below is a list of all supported optional parameter keys and what kind of values are to be associated with them.
- FROM
-
The value must contain the sender of the message.
- FLASH
-
The value must contain a boolean indicating if this is a flash SMS.
- NAME
-
The value must contain the name of the ringtone. This name should override any name already specified in the RTTTL string.
- MSG
-
The value must contain the textual message of a picture message.
HISTORY
- Version 0.01 2001-11-06
-
Initial version. Only the method send_text() has been tested. The rest have not been tested because I do not have an account that lets me do that at Simplewire. Maybe somebody else can test these methods.
AUTHOR
Craig Manley c.manley@skybound.nl
COPYRIGHT
Copyright (C) 2001 Craig Manley <c.manley@skybound.nl>. All rights reserved. This program is free software; you can redistribute it and/or modify it under under the same terms as Perl itself. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.