为什么我无法使用 Google People API 检索电子邮件地址和电话号码? [英] Why can't I retrieve emails addresses and phone numbers with Google People API?

查看:29
本文介绍了为什么我无法使用 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屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆