age WWW::ShipStation;
use strict;
use 5.008_005;
our $VERSION = '0.06';
use LWP::UserAgent;
use JSON;
use Carp 'croak';
use URI::Escape qw/uri_escape/;
use HTTP::Request;
sub new {
my $class =
args{pass} or croak "pass is required.";
$args{ua} ||= LWP::UserAgent->new();
$args{json} ||= JSON->new->allow_nonref->utf8;
$args{API_BASE} ||= 'https://ssapi.shipstation.com/';
bl
application/json'); # JSON is better
my $res = $self->{ua}->request($req);
# use Data::Dumper; print STDERR Dumper(\$res);
if ($res->header('Content-Type') =~ m{application/json}) {