Working and trying to test the Google People API in postman, and running into the following error.
> "error": {
> "code": 400,
> "message": "Invalid JSON payload received. Unknown name \"personFields\": Cannot bind query parameter. Field 'personFields'
> could not be found in request message.",
> "status": "INVALID_ARGUMENT",
> "details": [
> {
> "@type": "type.googleapis.com/google.rpc.BadRequest",
> "fieldViolations": [
> {
> "description": "Invalid JSON payload received. Unknown name \"personFields\": Cannot bind query parameter. Field
> 'personFields' could not be found in request message."
> }
> ]
> }
> ] } }
Here is the GET request I am trying to run:
https://people.googleapis.com/v1/people:searchContacts?query=removedEmailForPrivacy@email.com&personFields=person.email_addresses
I have read through the google People Docs but do not quite understand what I am doing wrong. In the docs it mentions I need a personFields query param, yet it is throwing the error above. I assume my formatting is wrong in some sense, but there aren't a ton of concrete examples I could find online.
For more context, I am attempting to search through the user's contact book and try and find the email address, and return pertinent information. Any help would be appreciated.