NAME
Net::MyCommerce::API::Resource
VERSION
version 1.0.1
METHODS
new (%args)
Create a new resource object.
$args{timeout}: timeout in seconds
request (%opts)
Generic resource request call.
my $resource = Net::MyCommerce::API::Resource->new();
my ($error, $result) = $resource->request( path => $path, params => $params );
if ($error) {
print "Error occurred: $error\n";
} else {
my $content = $result->{content};
my $status_code = $result->{status_code};
my $headers => $result->{headers};
}