OAuth2::Google::Plus::UserInfo
implements acallback to https://www.googleapis.com/oauth2/v2/userinfo, retrieving the users google-id, email and verification status.
use OAuth2::Google::Plus::UserInfo; my $info = OAuth2::Google::Plus::UserInfo->new( access_token => $access_token ); if( $info->is_success ) { my $email = $info->email; # ... }
To install OAuth2::Google::Plus, copy and paste the appropriate command in to your terminal.
cpanm
cpanm OAuth2::Google::Plus
CPAN shell
perl -MCPAN -e shell install OAuth2::Google::Plus
For more information on module installation, please visit the detailed CPAN module installation guide.