package SMS::MessageBird;
use 5.006;
use strict;
use warnings;
use LWP::UserAgent;
use JSON;
use SMS::MessageBird::API::SMS;
use SMS::MessageBird::API::Voice;
use SMS::MessageBird::API::Verify;
use
=head1 DESCRIPTION
This module provides a simple Perl interface to the MessageBird JSON API. It
deals with the JSON stuff allowing you to get back useful Perl data.
To use this module you'll need an
ad1 DESCRIPTION
This module provides the interface to the HLR related methods of the MessageBird
JSON API.
The methods implmented acceept the paramteres as named in the MessageBird API
documentation
y
checking.
=item content
This is a Perl hashref data structure decoded from the API's response JSON
as-is.
Please see the L<MessageBird Developer Documentation|https://www.messagebird.com/en-gb/de
DESCRIPTION
This module provides the interface to the Lookup related methods of the
MessageBird JSON API.
The methods implmented acceept the paramteres as named in the MessageBird API
documentation
y
checking.
=item content
This is a Perl hashref data structure decoded from the API's response JSON
as-is.
Please see the L<MessageBird Developer Documentation|https://www.messagebird.com/en-gb/de
=head1 DESCRIPTION
This module provides the interface to the Balance method of the MessageBird
JSON API.
The methods implmented acceept the paramteres as named in the MessageBird API
documentation
y
checking.
=item content
This is a Perl hashref data structure decoded from the API's response JSON
as-is.
Please see the L<MessageBird Developer Documentation|https://www.messagebird.com/en-gb/de
N
This module provides the interface to the Text-to-Voice SMS related methods of
the MessageBird JSON API.
The methods implmented acceept the paramteres as named in the MessageBird API
documentation
y
checking.
=item content
This is a Perl hashref data structure decoded from the API's response JSON
as-is.
Please see the L<MessageBird Developer Documentation|https://www.messagebird.com/en-gb/de
=head1 DESCRIPTION
This module provides the interface to the Verify methods of the MessageBird
JSON API.
The methods implmented acceept the paramteres as named in the MessageBird API
documentation
y
checking.
=item content
This is a Perl hashref data structure decoded from the API's response JSON
as-is.
Please see the L<MessageBird Developer Documentation|https://www.messagebird.com/en-gb/de
ad1 DESCRIPTION
This module provides the interface to the SMS sending methods of the MessageBird
JSON API.
The methods implmented acceept the paramteres as named in the MessageBird API
documentation
y
checking.
=item content
This is a Perl hashref data structure decoded from the API's response JSON
as-is.
Please see the L<MessageBird Developer Documentation|https://www.messagebird.com/en-gb/de
ssageBird::API;
use strict;
use warnings;
use Encode qw( encode_utf8 );
use LWP::UserAgent;
use JSON;
use URI;
=head1 NAME
SMS::MessageBird::API - Provides API integration base for SMS::MessageBir
eaders => HTTP::Headers->new(
'content-type' => 'application/json',
Accept => 'application/json',
Authorization => 'AccessKey ' . $self->{api_key},
d.
} else {
my $content_payload = JSON->new->encode($data);
$request_params{'Content-Type'} = 'application/json;charset=utf-8',
$request_params{Content} =