package Gcis::Client;
use Mojo::UserAgent;
use Mojo::Base -base;
use Mojo::Log;
use JSON::XS;
use YAML::XS qw/LoadFile/;
use Path::Class qw/file/;
use Data::Dumper;
use Time::HiRes qw/sleep/;
use v5.1
gger => sub { state $log ||= Mojo::Log->new(); };
has json => sub { state $json ||= JSON::XS->new(); };
has accept => "application/json";
has 'tx';
sub auth_hdr { ($a = shift->key) ? ("Autho
ssage});
return;
};
my $json = $res->json or do {
$s->logger->debug("no json from $path : ".$res->to_string);
$s->error("No JSON returned from $path : ".$res->to_string