ept => 'application/vnd.github.v3+json',
Authorization => "token $token",
'User-Agent' => 'Mojolicious-Command-nopaste (author: jberger)',
},
json => $data,
);
$ua->start($tx);
ed, code $error->{code}: $error->{message}";
say $tx->res->body;
} else {
say "Connection error: $error->{message}";
}
exit 1;
}
return $tx->res->json->{html_url};
}
1;
elf->ua->post(
'http://fpaste.org',
form => {
api_submit => 1,
mode => 'json',
paste_data => $self->text,
paste_lang => $lang,
($self->private ? (paste_priv
>res->message;
say $tx->res->body;
exit 1;
}
my $url = Mojo::URL->new('http://fpaste.org/');
push @{$url->path->parts}, @{$tx->res->json->{result}}{qw(id hash)};
return $url;
}
1;
s+django" => 1,
"js+erb" => 1,
"js+genshitext" => 1,
"js+mako" => 1,
"js+myghty" => 1,
"json" => 1,
"jsp" => 1,
"js+php" => 1,
"js+smarty" => 1,
"kotlin" => 1,
"lhs" => 1,
"light