6;
use utf8;
use warnings;
use Carp;
use URI;
use Encode;
use MIME::Base64;
use URI::Escape;
use JSON 2.23;
use REST::Client;
use HTTP::CookieJar::LWP;
sub new {
my ($class, %args) = &_grok_args
ar(HTTP::CookieJar::LWP->new());
}
my $jira = bless {
rest => $rest,
json => JSON->new->utf8->allow_nonref,
api => $api,
} => $class;
$jira->{_session} = $ji
if ($type =~ m:text/plain:i) {
$msg .= $content;
} elsif ($type =~ m:application/json:) {
# Jira errors may be laid out in all sorts of ways. You have to look
# them u