in reply to Getting Moo::Google working with People API
I've made a little headway with this:
#! /usr/bin/env perl use Moo::Google; use Log::Log4perl::Shortcuts qw(:all); use Data::Dumper qw (Dumper); my $gapi = Moo::Google->new(debug => 0); my $user = me@gmail.com'; $gapi->auth_storage->setup({ type => 'jsonfile', path => 'config.json' + }); $gapi->user($user); $gapi->do_autorefresh; my $r1 = $gapi->People->People;
Now I'm trying to figure out how to use the get method on $r1 to pull up my own information per the documentation.
I've tried $r1->get({ resourceName => 'people/me' })->json; but the resource is not found. I also tried with $r1->People->get({'resourceName' => 'people/me', 'personFields' => 'emailAddresses'})->json; but still no dice.
$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate Priest";
$nysus = $PM . ' ' . $MCF;
Click here if you love Perl Monks
|
|---|