Group
Extension

Matches 2

WWW-Google-Cloud-Messaging ( X/XA/XAICRON/WWW-Google-Cloud-Messaging-0.06.tar.gz, XAICRON, 2015; MetaCPAN )
WWW-Google-Cloud-Messaging/lib/WWW/Google/Cloud/Messaging.pm ( view source; MetaCPAN )
8_001;

use Carp qw(croak);
use LWP::UserAgent;
use LWP::ConnCache;
use HTTP::Request;
use JSON qw(encode_json);
use Class::Accessor::Lite (
    new => 0,
    rw  => [qw/ua api_url api_key/],
);

use 
{delay_while_idle}) {
        $payload->{delay_while_idle} = $payload->{delay_while_idle} ? JSON::true : JSON::false;
    }

    my $req = HTTP::Request->new(POST => $self->api_url);
    $req->header(
;
    $req->header('Content-Type' => 'application/json; charset=UTF-8');
    $req->content(encode_json $payload);
    return $req;
}

1;
__END__

=encoding utf-8

=for stopwords

=head1 NAME

WWW::Goo
WWW-Google-Cloud-Messaging ( X/XA/XAICRON/WWW-Google-Cloud-Messaging-0.06.tar.gz, XAICRON, 2015; MetaCPAN )
WWW-Google-Cloud-Messaging/lib/WWW/Google/Cloud/Messaging/Response.pm ( view source; MetaCPAN )
package WWW::Google::Cloud::Messaging::Response;

use strict;
use warnings;
use JSON qw(decode_json);

use WWW::Google::Cloud::Messaging::Response::ResultSet;

sub new {
    my ($class, $http_response
t;
    my $reg_ids    = [];

    if ($is_success) {
        $content = decode_json $content;
        $reg_ids = decode_json($http_response->request->content)->{registration_ids};
    }
    else {
    

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.