ckage Net::SMS::TxtLocal;
use Carp;
use LWP::UserAgent;
use Moose;
use namespace::autoclean;
use JSON;
use 5.006;
our $VERSION = '0.03';
=head1 NAME
Net::SMS::TxtLocal - Send SMS messages using t
ath;
my $post_query = {
uname => $self->uname,
pword => $self->pword,
json => 1,
%$query,
};
my $response = $self->ua->post( $url, $post_query );
croa
return the response unless it looks like JSON
return $content unless $content =~ m{ \A \s* \{ \s* "\w }x;
# decode the JSON
my $data = decode_json($content);
# check for the error ke