logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SMS::Send::AQL - SMS::Send driver to send messages via AQL (www.aql.com)

Author

       David Precious, <davidp@preshweb.co.uk>

Description

       A driver for SMS::Send to send SMS text messages via AQL (www.aql.com)

       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).

Methods

       new Constructor,  takes  argument pairs passed by SMS::Send, returns an SMS::Send::AQL object.  See usage
           synopsis for example, and see SMS::Send documentation for further info on using SMS::Send drivers.

       send_sms
           Send the message - see SMS::Send for details.

Name

       SMS::Send::AQL - SMS::Send driver to send messages via AQL (www.aql.com)

Synopsis

         use SMS::Send;

         # Create a sender
         my $sender = SMS::Send->new('AQL',
               _login    => 'your_aql_username',
               _password => 'your_aql_password',
               _sender   => 'sender number',
         );

         # Send a message
         my $sent = $sender->send_sms(
               text => 'This is a test message',
               to   => '+61 (4) 1234 5678',
         );

         if ( $sent ) {
               print "Message sent ok\n";
         } else {
               print "Failed to send message\n";
         }

See Also