in reply to Getting Moo::Google working with People API
So, I've been able to make some more headway on this by delving into the code of Moo::Google::Client.pm. There is a method in that module called build_http_transaction. The method passes a $path scalar to a build_tx subroutine in mojolicious. The $path scalar is set by inspecting Google's discovery api and has the value of https://people.googleapis.com/v1/{+resourceName} for the API call here. If I hard code the path to:
https://people.googleapis.com/v1/people/me and make the API call through Moo::Google with $r1->People->get({options => {personFields => 'emailAddresses'} )->json; I can actually get it to work and return results.So now the question is, how do I make the call via Moo::Google so that {+resourceName} in the path gets replaced with people/me? Maybe this is impossible with Moo::Google?
$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate Priest";
$nysus = $PM . ' ' . $MCF;
Click here if you love Perl Monks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Getting Moo::Google working with People API
by localshop (Monk) on Oct 03, 2018 at 21:30 UTC |