SMS::Send::Kannel::SMSbox - SMS::Send driver for Kannel SMSbox web service
Using SMS::Send Driver API
SMS-Send.ini [Kannel::SMSbox] host=mykannelserver username=myuser password=mypass use SMS::Send; my $service = SMS::Send->new('Kannel::SMSbox'); my $success = $service->send_sms( to => '+1-800-555-1212', text => 'Hello World!', );
SMS::Send driver for Kannel SMSbox web service.
use SMS::Send::Kannel::SMSbox; my $service = SMS::Send::Kannel::SMSbox->new( username => $username, password => $password, host => $host, ); my $success = $service->send_sms( to => '+18005551212', text => 'Hello World!', );
Sends the SMS message and returns 1 for success and 0 for failure or die on critical error.
Sets and returns the username string value
Override in sub class
sub _username_default {"myusername"};
Override in configuration
[Kannel::SMSbox] username=myusername
Sets and returns the password string value
sub _password_default {"mypassword"};
[Kannel::SMSbox] password=mypassword
Default: 127.0.0.1
sub _host_default {"myhost.domain.tld"};
[Kannel::SMSbox] host=myhost.domain.tld
Default: http
sub _protocol_default {"https"};
[Kannel::SMSbox] protocol=https
Default: 13013
sub _port_default {443};
[Kannel::SMSbox] port=443
Default: /cgi-bin/sendsms
sub _script_name_default {"/path/file"};
[Kannel::SMSbox] script_name=/path/file
Returns a URI object based on above properties
Michael R. Davis CPAN ID: MRDVT Satellite Tracking of People, LLC mdavis@stopllc.com http://www.stopllc.com/
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
SMS::Send, SMS::Send::Driver::WebService
To install SMS::Send::Kannel::SMSbox, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SMS::Send::Kannel::SMSbox
CPAN shell
perl -MCPAN -e shell install SMS::Send::Kannel::SMSbox
For more information on module installation, please visit the detailed CPAN module installation guide.