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

后端 未结 5 1915
有刺的猬
有刺的猬 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:23

    You have to use people.connections.list to fetch the list of contacts, then loop over them and use people.get in order to fetch each individual contact. In my case I set pageSize to 50 and then I use people:batchGet (which supports up to 50 resource names at a time) to fetch the details for those 50 contacts.

提交回复
热议问题