为什么我无法使用 Google People API 检索电子邮件地址和电话号码? [英] Why can't I retrieve emails addresses and phone numbers with Google People API?
问题描述
我想使用
我做错了吗?或者这可能是 Google 方面的问题?
我找到了一个 解决方案.根据 Google People API 文档省略了这个 RequestMask
字段将包括所有字段,但这不会发生.在我的情况下,将 RequestMask
字段设置为 person.names,person.emailAddresses,person.phoneNumbers
有效.
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 names are being retrieved but not the emails addresses and phone numbers. I think I'm doing everything correctly. I'm properly authenticated with the proper scopes and selected fields.
Am I doing something wrong? Or maybe this is an issue on Google's side?
I have found a solution. According to the Google People API docs omitting this RequestMask
field will include all fields but that's not happening. In my case setting the RequestMask
field to person.names,person.emailAddresses,person.phoneNumbers
works.
这篇关于为什么我无法使用 Google People API 检索电子邮件地址和电话号码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!