t::GrowthForecast;
use strict;
use warnings;
use Carp;
use List::MoreUtils qw//;
use Furl;
use JSON::XS;
use Try::Tiny;
our $VERSION = '0.02';
#TODO: basic authentication support
sub new {
, $method, $code, $c, $list);
}
sub _check_response {
# check response body with "$c->render_json({ error => 1 , message => '...' })" style error status
my ($self, $url, $method, $code, $cont
;
}
return 1 unless $content;
my $error;
my $obj;
try {
$obj = decode_json($content);
if (defined($obj) and ref($obj) eq 'ARRAY') {
return $obj;