NAME

LINE::Notify::Simple

VERSION

1.0

SYNOPSIS

#!/usr/bin/env perl

use strict;
use warnings;
use utf8;
use feature qw(say);
use LINE::Notify::Simple;

my $access_token = 'your line access token';
my $message = "\nThis is test message.";
# see https://developers.line.biz/ja/docs/messaging-api/sticker-list/
my $data = { stickerPackageId => 11539, stickerId => 52114110 };

my $line = LINE::Notify->new({access_token => $access_token});

my $res = $line->notify($message, $data);
if ($res->is_success) {
    say $res->message;
} else {
    say $res->status_line . ". ". $res->message;
}

exit;

DESCRIPTION

LINE Notify API simple & easy POST request module.

METHOD

notify

POST https://notify-api.line.me/api/notify. Return LINE::Notify::Simple::Response.

$message

Post message(require)

$data

Optional hashref. keys are imageThumbnail, imageFullsize, stickerPackageId, stickerId, notificationDisabled

AUTHOR

Akira Horimoto <emperor.kurt _at_ gmail.com>

SEE ALSO

https://notify-bot.line.me/doc/ja/

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.