WWW::Google::Cloud::Messaging::Response - An accessor of GCM response data
my $res = $gcm->send({ ... }); die $res->error unless $res->is_success; say $res->multicast_id; say $res->success; say $res->failure; say $res->canonical_ids; # get WWW::Google::Cloud::Messaging::Response::ResultSet my $results = $res->results;
WWW::Google::Cloud::Messaging::Response is an accessor of GCM response data.
Create a WWW::Google::Cloud::Messaging::Response. This method used in WWW::Google::Cloud::Messaging internally if send method is used.
send
Returns a success / failure of the request.
Returns error message if failure of the request.
A unique ID identifying this multicast message.
Number of messages that were processed without an error.
Number of messages that could not be processed.
Number of results that contain a canonical registration ID.
SEE ALSO http://developer.android.com/guide/google/gcm/adv.html#canonical.
Returns WWW::Google::Cloud::Messaging::Response::ResultSet instance if success of the request.
my $results = $res->results; while (my $result = $results->next) { ... }
xaicron <xaicron@cpan.org>
Copyright 2012 - xaicron
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
WWW::Google::Cloud::Messaging
To install WWW::Google::Cloud::Messaging, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::Google::Cloud::Messaging
CPAN shell
perl -MCPAN -e shell install WWW::Google::Cloud::Messaging
For more information on module installation, please visit the detailed CPAN module installation guide.