APNS-Agent
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
# NAME
APNS::Agent - agent server for APNS
# SYNOPSIS
use APNS::Agent;
my $agent = APNS::Agent->new(
certificate => '/path/to/certificate',
private_key => '/path/to/private_key',
);
$agent->run;
# DESCRIPTION
APNS::Agent is agent server for APNS. It is also backend class of [apns-agent](http://search.cpan.org/perldoc?apns-agent).
This module provides consistent connection to APNS and cares reconnection. It utilizes
[AnyEvent::APNS](http://search.cpan.org/perldoc?AnyEvent::APNS) internally.
__THE SOFTWARE IS ALPHA QUALITY. API MAY CHANGE WITHOUT NOTICE.__
# API PARAMETERS
APNS::Agent launches HTTP Server process which accepts only POST method and
`application/x-www-form-urlencoded` format parameters.
Acceptable parameters as follows:
- `token`
device token by HEX format. (Required)
- `payload`
JSON string for push notification. If you only want to send message, alternatively can use
`alert` parameter.
One of `payload` and `alert` must be supplied. Both of `payload` and `alert` are specified,
the `payload` parameter has priority.
- `alert`
push notification message.
# SEE ALSO
[AnyEvent::APNS](http://search.cpan.org/perldoc?AnyEvent::APNS)
# THANKS
Thank __@shin1rosei__ that many code of this module is taken from
[https://github.com/shin1rosei/AnyEvent-APNS-Server](https://github.com/shin1rosei/AnyEvent-APNS-Server).
# LICENSE
Copyright (C) Songmu.
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.
# AUTHOR
Songmu <y.songmu@gmail.com>
view all matches for this distributionview release on metacpan - search on metacpan
( run in 0.609 second using v1.00-cache-2.02-grep-82fe00e-cpan-2cc899e4a130 )