Google-Plus
view release on metacpan or search on metacpan
lib/Google/Plus.pm view on Meta::CPAN
my $key = $plus->key;
my $key = $plus->key('xxxxNEWKEYxxxx');
Google+ API key, used for retrieving content. Usually set using L</new>.
=head2 C<ua>
my $ua = $plus->ua;
my $ua = $plus->ua(Mojo::UserAgent->new);
User agent object that retrieves JSON from the Google+ API endpoint.
Defaults to a L<Mojo::UserAgent> object. This object will use
HTTP/HTTPS proxies when available (via C<HTTP_PROXY> and C<HTTPS_PROXY>
environment variables.)
=head1 METHODS
L<Google::Plus> implements the following methods:
=head2 C<new>
t/01-plus.t view on Meta::CPAN
BEGIN {
plan skip_all => 'these tests are not for smoke testing'
if $ENV{AUTOMATED_TESTING};
plan skip_all => 'Needs Google+ API key in %ENV'
unless $ENV{GOOGLE_PLUS_API_KEY};
my $p = Net::Ping->new('syn', 2);
$p->port_number(scalar getservbyname(https => 'tcp'));
$p->service_check(1);
plan skip_all => 'Needs access to remote Google API endpoint'
unless $p->ping('www.googleapis.com');
plan tests => 4;
}
use Google::Plus;
# Google+Zak
my $user_id = '112708775709583792684';
( run in 1.083 second using v1.01-cache-2.11-cpan-2b1a40005be )