ON = '0.2.1';
use v5.10;
use open qw(:std :utf8);
use Moose;
use MooseX::Types::Path::Class;
use JSON;
use LWP::UserAgent;
use HTTP::Cookies;
use Log::Any qw//;
use DateTime;
use MIME::Base64 qw//;
u
=> 1,
);
method _build__ua {
my $headers = HTTP::Headers->new(Content_Type => 'application/json',);
# XXX is it worth saving cookie?? How is password more valuable than auth token?
# l
ogger->error('Network: ' . $response->status_line);
return;
}
my $index = decode_json($response->content);
if ($index->{count} > 0) {
$self->logger->debugf('Network: Inde