SMS::Send::IN::Unicel - Regional context SMS::Send driver to send messages via Unicel Technologies (http://unicel.in/)
version 0.01
use SMS::Send; # Create a sender my $sender = SMS::Send->new( 'IN::Unicel', _login => 'username', _password => 'password', ); # Send a message my $sent = $sender->send_sms( text => 'This is a test message', to => '919876012345', ); if ($sent) { print "Message send OK\n"; } else { print "Failed to send message\n"; }
An Indian regional context driver for SMS::Send to send SMS text messages via Unicel Technologies in India - http://unicel.in/
This is not intended to be used directly, but instead called by SMS::Send (see synopsis above for a basic illustration, and see SMS::Send's documentation for further information).
The driver uses the Unicel's HTTP GET API mechanism. This is documented in the Developer documentation available to paying customers of the service.
Constructor, takes argument pairs passed by SMS::Send, returns an SMS::Send::IN::Unicel object. See usage synopsis for example, and see SMS::Send documentation for further info on using SMS::Send drivers.
Additional arguments that may be passed include:-
The HTTP API endpoint. Defaults to https://unicel.in/SendSMS/sendmsg.php
https://unicel.in/SendSMS/sendmsg.php
Whether debugging information is output or not.
Send the message - see SMS::Send for details. Briefly it requires two principal parameters to function:
Used to supply the 160 character message body.
Destination mobile phone number in India. Numbered as per NNP 2003 i.e. 91XXYYYZZZZZ.
Additional checks have been placed into the code for ensuring compliance with Indian National Numbering Plan 2003 (and its subsequent amendments). This measure is expected to prevent user generated errors due to improperly formatted or invalid mobile numbers, as noted below:
81 is an invalid country code. As an India specific driver, the country code must be 91.
As per National Numbering Plan 2003, cell phone numbers (both GSM and CDMA) have to start with 9XXXX / 8XXXX / 7XXXX series (access code + operator identifier). A phone number that does not fit this template will be rejected by the driver.
A phone number that is less than 10-digits long or over 12-digits long (including country code prefix) will be rejected as invalid input as per NNP 2003.
Phone numbers formatted as above, when input to the driver will be handled as "919XXXXYYYYY"
The following error codes are returned by the Unicel HTTP API:
See perlmodinstall for information and options on installing Perl modules.
You can make new bug reports, and view existing ones, through the web interface at http://rt.cpan.org/Public/Dist/Display.html?Name=SMS-Send-IN-Unicel.
The project homepage is https://metacpan.org/release/SMS-Send-IN-Unicel.
The latest version of this module is available from the Comprehensive Perl Archive Network (CPAN). Visit http://www.perl.com/CPAN/ to find a CPAN site near you, or see https://metacpan.org/module/SMS::Send::IN::Unicel/.
Severel existing drivers both international and regional, were inspiration and source for liberal copying.
Indranil Das Gupta <indradg@l2c2.co.in> (on behalf of L2C2 Technologies).
This software is copyright (c) 2015 by Indranil Das Gupta.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself, or at your option, any later version of Perl 5 you may have available.
This software comes with no warranty of any kind, including but not limited to the implied warranty of merchantability.
Your use of this software may result in charges against / use of available credits on your Unicel account. Please use this software carefully keeping a close eye on your usage and/or billing, The author takes no responsibility for any such charges accrued.
Document published by L2C2 Technologies [ http://www.l2c2.co.in ]
To install SMS::Send::IN::Unicel, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SMS::Send::IN::Unicel
CPAN shell
perl -MCPAN -e shell install SMS::Send::IN::Unicel
For more information on module installation, please visit the detailed CPAN module installation guide.