NAME
SMS::MT::Service::WirelessServices - SMS::MT plugin module.
SYNOPSIS
use SMS::MT;
my $sm = new SMS::MT('UID' => 'joeblow',
'PWD' => 'secret',
'PLUGIN' => 'WirelessServices');
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.wireless-services.nl .
CLASS METHODS
- new ('UID' => $userid, 'PWD' => $password);
-
Returns a new SMS::MT::Service::WirelessServices 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.
- VALIDITY
-
The value must contain the validity of the message in minutes.
- 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.
- TYPE
-
The type of telephone. This is only relevent for non-textual messages. Examples: NOKIA (default), EMS, MOTOROLA, SAGEM.
HISTORY
- Version 0.01 2001-11-06
-
Initial version
- Version 0.02 2002-01-02
-
Added TYPE optional parameter.
- Version 0.03 2002-07-01
-
Added support for backup hosts.
- Version 0.04 2002-07-03
-
Added support for SAMSUNG telephone type. This is the same as NOKIA, so SAMSUNG is changed into NOKIA in _send_request().
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.