000;
use strict;
use warnings;
use utf8;
use Carp();
use Moo;
use HTTP::Tiny;
use JSON::PP qw(encode_json decode_json);
use Net::Gotify::Application;
use Net::Gotify::Client;
use Net::Gotify::Error;
verify_SSL => $self->verify_ssl,
default_headers => {'Content-Type' => 'application/json', 'X-Gotify-Key' => $self->_get_token($token_type)},
agent => sprintf('%s/%s',
ete @$data{grep { not defined $data->{$_} } keys %{$data}};
$options = {content => encode_json($data)};
}
my $response = $ua->request($method, $url, $options);
if (my $logger = $