s;
use strict;
use warnings;
our $VERSION = '1.04';
use Carp qw(croak);
use HTTP::Request;
use JSON;
use LWP::UserAgent;
use constant {
# Core
MIN_SCORE => 0,
MAX_SCORE
esponse = $ua->request($req);
}
if ($self->file || $response->is_success) {
my $json;
if ($self->file) {
{
local $/;
open my $fh,
$json = <$fh>;
close $fh;
}
}
else {
$json = $response->decoded_content;
}
my $result = decode_json $json;