NAME

Google::Plus - simple interface to Google+

SYNOPSIS

use Google::Plus;
use v5.10.1;

my $plus = Google::Plus->new(key => $your_gplus_api_key);

# get a person's profile
my $person = $plus->person('112708775709583792684');
say "Name: ", $person->display_name;

DESCRIPTION

This module lets you access Google+ people profiles and activities from Perl. Currently, only access to public data is supported.

ATTRIBUTES

key

my $key = $plus->key;
my $key = $plus->key('xxxxNEWKEYxxxx');

Google+ API key, used for retrieving content. Usually set using "new".

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 Mojo::UserAgent object.

METHODS

Google::Plus implements the following methods:

new

my $plus = Google::Plus->new(key => $google_plus_api_key);

Construct a new Google::Plus object. Needs a valid Google+ API key, which you can get at https://code.google.com/apis/console.

person

my $p = $plus->person('userId');

Get a Google+ person's profile. Returns a Google::Plus::Person object.

AUTHOR

Zak B. Elep, zakame@cpan.org

COPYRIGHT AND LICENSE

This software is Copyright (c) 2011, Zak B. Elep.

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