NAME

Net::Pushover - The Pushover API client for Perl 5

SYNOPSIS

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'
);  

DESCRIPTION

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...

ACCESSORS

This is a list of accessors implemented for this module.

token

$push->token('a94a8fe5ccb19ba61c4c0873d391e9');
say $push->token;

Set token information for API authentication;

user

$push->user('a94a8fe5ccb19ba61c4c0873d391e9');
say $push->user;

Set user information for API authentication;

METHODS

This is a list of methods implemented for this module.

message

# 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.

Official message API docs at https://pushover.net/api#messages

SEE ALSO

https://pushover.net

LICENSE AND COPYRIGHT

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.