SMS::Send::Sergel::Simple::HTTP
use SMS::Send;
use SMS::Send::Sergel::Simple::HTTP;
# Create sender
my $sender = SMS::Send->new('Sergel::Simple::HTTP',
_url => 'API url'
_serviceid => 'serviceid',
_login => 'username',
_password => 'password',
_sender => 'SENDER' # Text or phone number
);
# Send message, returns true if OK
my $sent = $sender->send_sms(
text => 'My message text',
to => '+4612345678', # Phone number
);
if ($sent) {
# OK
} else {
# Not OK
}
SMS::Send::Sergel::Simple::HTTP is a perl library for sending SMS with the Sergel Simple HTTP SMS service.
Eivin Giske Skaaren eivin@sysmystic.com
Copyright 2017- Eivin Giske Skaaren
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.