Net::Pushover - The Pushover API client for Perl 5
use Net::Pushover; # new object with auth parameters my $push = Net::Pushover->new( token => 'a94a8fe5ccb19ba61c4c0873d391e9', user => 'a94a8fe5ccb19ba61c4c0873d391e9' ); # send a notification $push->message( title => 'Perl Pushover Notification', text => 'This is my notification' );
Pushover is a service that provide an API for a notification sender service to a big list of devices like android, iphone, ipad, desktop, smart watches, etc...
This is a list of accessors implemented for this module.
$push->token('a94a8fe5ccb19ba61c4c0873d391e9'); say $push->token;
Set token information for API authentication;
token
$push->user('a94a8fe5ccb19ba61c4c0873d391e9'); say $push->user;
Set user information for API authentication;
user
This is a list of methods implemented for this module.
# message is required $push->message( text => 'This is a notification' ); # message with title $push->message( title => 'Pushover Perl', text => 'This is a notification' ); # with a simple html text format $push->message( html => 1, title => 'Pushover Perl', text => 'This is a <font color="blue">notification</font>' );
Method message send a notification for an specificated user and returns decoded JSON from API http response.
message
JSON
Official message API docs at https://pushover.net/api#messages
https://pushover.net
Copyright 2016 Daniel Vinciguerra <dvinci at cpan.org>.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Net::Pushover, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Pushover
CPAN shell
perl -MCPAN -e shell install Net::Pushover
For more information on module installation, please visit the detailed CPAN module installation guide.