e Slurp;
use Try::Tiny;
use YAML;
use JSON;
use Carp;
use File::Share ':all';
our @EXPORT_OK = qw(
load_config
build_url_template
http_json_post
http_json_get
);
our $VERSION = '0.06';
my $
carp "cannot read $session_path, error: $_";
};
return $session_key;
}
sub http_json_post {
my ( $url, $data, $need_session_key ) = @_;
$need_session_key //= 1;
my $confi
,
'Content-Type' => 'application/json; charset=UTF-8'
];
}
else {
$header = [ 'Content-Type' => 'application/json; charset=UTF-8' ];
}
my $request = HTT