Release Actions Status License Starts Forks Issues Coverage Status

Net::Gotify - Gotify client for Perl

Synopsis

use Net::Gotify;

my $gotify = Net::Gotify->new(
    base_url     => 'http://localhost:8088',
    app_token    => '<TOKEN>',
    client_token => '<TOKEN>',
    logger       => $logger
);

$gotify->create_message(
    title    => 'Backup',
    message  => '**Backup** was successfully finished.',
    priority => 2,
    extras   => {
        'client::display' => {contentType => 'text/markdown'}
    }
);

Install

Using Makefile.PL:

To install Net::Gotify distribution, run the following commands.

perl Makefile.PL
make
make test
make install

Using App::cpanminus:

cpanm Net::Gotify

Documentation