The Pushover API client implementation
# pragmas
use 5.10.0;
# imports
use Moo;
use Carp;
use JSON;
use LWP::UserAgent;
# version
our $VERSION = 0.021;
# accessors
has token => (is => 'rw');
ha
g data
my $res = $self->_ua->post(
'https://api.pushover.net/1/messages.json', $args
);
return JSON::decode_json($res->decoded_content)
}
sub _auth_validation {
my $self = shift;
# au
nt>'
);
Method C<message> send a notification for an specificated user and returns
decoded C<JSON> from API http response.
Official message API docs at L<https://pushover.net/api#messages>
=h