The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

SMS::Send::CZ::Smseagle - SMS::Send driver for SMSEagle - Czech Republic

VERSION

version 1.001

SYNOPSIS

use SMS::Send;

my $sender = SMS::Send->new('CZ::Smseagle',
	_login    => 'who',
	_password => 'secret',
	_api_url => 'https://.../index.php/http_api/send_sms
	);

my $sent = $sender->send_sms(
	text => 'Test SMS',
	to   => '604111111',
	);

# Did it send?
if ( $sent ) {
	print "Sent test message\n";
} else {
	print "Test message failed\n";
}

METHODS

log

Logs message to /var/log/smseagle.log if this file is accessible and writable

send_sms

Sends the message using SMSEagle API, see https://www.smseagle.eu Parameter 'text' contains the message itself and 'to' provides recipient's number. API URL is passed to the constructor as '_api_url'.

Processing information is automatically logged to /var/log/smseagle.log to allow tracking of possible problems.

Returns true if the msssage was successfully sent

Returns false if an error occured

AUTHOR

Radek Šiman <rbit@rbit.cz>

COPYRIGHT AND LICENSE

This software is copyright (c) 2023 by R-Bit Technology, s.r.o.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.