SMS::Send::MessageBird - SMS::Send driver for the SMS::MessageBird distribution.
Version 0.04
Enables sending of SMS messages with the SMS::Send distribution using MessageBird's API as the providing gateway via the SMS::MessageBird distribution.
use SMS::Send; use SMS::Send::MessageBird; my $messagebird = SMS::Send->new( 'SMS::Send::MessageBird', _api_key => 'test_ABCDEF123456', _originator => 'James Ronan', ); $messagebird->send_sms( text => 'Hi, How are you?', to => '+441234567890', );
SMS::Send Driver for the SMS::MessageBird distribution - provides a simple interface for SMS sending via MessageBird.
This module isn't designed to be used on its own. Please see SMS::Send for more information.
Sends an SMS via MessageBird.
As there are a whole host of optional parameters that can be passed to the MessageBird API, along with the required parameters, an additional '_parameters' key can be passed containing a hash of those options.
Required. This is mapped to SMS::MessageBird's recipients parameter. Due to the way SMS::Send works, it will accept only a single recipient.
Required. This is mapped to SMS::MessageBird's body parameter. It should contain the content of the message you wish to send.
Optional. This should be a hashref of the extra parameters you wish to pass to SMS::MessageBird.
The one exception to the "optional" status is be the originator parameter, If you don't pass _originator to the SMS::Send constructor then you must provide it via the _parameters hashref.
James Ronan, <james at ronanweb.co.uk>
<james at ronanweb.co.uk>
Please report any bugs or feature requests to bug-sms-send-messagebird at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=SMS-Send-MessageBird. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-sms-send-messagebird at rt.cpan.org
Alternatively you can raise an issue on the source code which is available on GitHub.
Copyright 2016 James Ronan.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install SMS::Send::MessageBird, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SMS::Send::MessageBird
CPAN shell
perl -MCPAN -e shell install SMS::Send::MessageBird
For more information on module installation, please visit the detailed CPAN module installation guide.