We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm trying to figure out how to make the API call found at https://developers.google.com/people/api/rest/v1/people/get and I'm having trouble.
Google returns the following path using the Discovery API: https://people.googleapis.com/v1/{+resourceName}
https://people.googleapis.com/v1/{+resourceName}
I would like to replace {+resourceName} with people/me. The documentation doesn't appear to address this possibility. Can it be done?
{+resourceName}
people/me
The text was updated successfully, but these errors were encountered:
Solved with a lower level method, api_query():
api_query()
#! /usr/bin/env perl use Moo::Google; 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; $res = $gapi->api_query( { httpMethod => 'get', path => 'https://people.googleapis.com/v1/people/me', options => { personFields => 'emailAddresses' } }); print Dumper $res;
If there is a better way, I'd be interested in hearing.
Sorry, something went wrong.
No branches or pull requests
I'm trying to figure out how to make the API call found at https://developers.google.com/people/api/rest/v1/people/get and I'm having trouble.
Google returns the following path using the Discovery API:
https://people.googleapis.com/v1/{+resourceName}
I would like to replace
{+resourceName}
withpeople/me
. The documentation doesn't appear to address this possibility. Can it be done?The text was updated successfully, but these errors were encountered: