ssName Object Str Int Bool HashRef ArrayRef Maybe Optional);
use Type::Params qw( compile );
use JSON::MaybeXS 1.001000 ();
use HTTP::Request;
use LWP::UserAgent;
use HTTP::CookieJar::LWP;
use Data::
eck = compile(Object);
my ($self) = $check->(@_);
return $self->{'debug'};
}
#Convenient JSON-HTTP fetcher
sub _doRequest {
state $check = compile(
Object, Str,
Optional [
warn "$method " . $self->apiurl . "/$path" if $self->debug;
my $coder = JSON::MaybeXS->new;
#Data sent is JSON, and encoded per user preference
my $content =
$data
? Encode