Why can't I retrieve emails addresses and phone numbers with Google People API?

后端 未结 5 1929
有刺的猬
有刺的猬 2020-12-29 00:59

I want to retrieve my contacts names, email address and phone numbers using the Google People API and I\'m using their Try it! tool to test the API.

The name

5条回答
  •  抹茶落季
    2020-12-29 01:29

    Just to be clear — because it really wasn't to me — if you are constructing the GET request yourself the query parameter for the request mask is requestMask.includeField. The nested JSON is flattened to a keypath. So the complete connection list GET request would be something like:

    https://content-people.googleapis.com/v1/people/me/connections?requestMask.includeField=person.names,person.addresses,person.email_addresses,person.organizations,person.phone_numbers

提交回复
热议问题