:Dumper;
use URI::Escape;
use HTTP::Request::Common;
use HTTP::Response;
use LWP::UserAgent;
use JSON;
use utf8;
# ABSTRACT: API para enviar SMS através da NSMS (http://www.nsms.com.br/)
our $VERSI
=> 1,
default => sub {
my $self = shift;
join( '/', $self->baseurl, 'get', 'json' )
. '?to=55'
. $self->to
. '&content='
. uri_esc
> 'Bool',
default => 0
);
sub _json_to_struct {
my ( $self, $ret ) = @_;
$ret = $ret->content if ref($ret) eq 'HTTP::Response';
my $st = decode_json($ret);
print Dumper($st) if $s