Open adobs opened 7 years ago
Hi you cannot obtain phone number from google people api
have you found a solution yet?
Found it! Google have changed the profile page, and so the field you are looking for is the contact number, not the person's about me phone number
With the following discovery and scope, I am successfully able to obtain 'names' and 'emailAddresses'. However, I am unable to obtain 'phoneNumbers'.
This yields the following error: "Requested entity was not found."
However,
gapi.client.people.people.get({ resourceName: 'people/me', personFields:'names'}) .then(function(response) { userFirstName = response.result.names[0].givenName; userLastName = response.result.names[0].familyName; }); gapi.client.people.people.get({ resourceName: 'people/me', personFields: 'emailAddresses'})
are successful.Please advise how I can obtain phoneNumbers. Thanks