是否可以从Google帐户电子邮件中获取显示名称

发布于 2025-01-30 07:55:53 字数 828 浏览 2 评论 0 原文

摘要

我为SaaS产品开发了Google API集成。 它的功能之一是检索Google日历中注册的活动的参与者的电子邮件和显示名称

。但是我发现许多活动参与者都有一封电子邮件,但没有DisplayName。(参考2,3)

然后,我尝试使用Google People API从电子邮件中获取DisplayName,但我找不到获得它的方法。

问题 如果您知道从Google帐户电子邮件中获取DisplayName的方法,请告诉我如何做。

参考

  1. google genualar api,事件资源资源表示
  2. google calendar api,事件资源表示

Abstract

I develop a Google API integration for a Saas product.
One of its functions is to retrieve the email and displayName of the participants of an event registered in Google Calendar.(ref 1, same issue is reported)

At first I try to get email and display name from get method for google calendar events resources,but I found that many event participants have an email but no displayName.( ref 2,3 )

Then, I try to use google people api to get displayName from email but I couldn't find the way to get it.

Question
If you know the way to get displayName from google account email, please tell me how to do it.

Reference

  1. Google Calendar API: Display Name doesn't work
  2. Google Calendar API, Events Resource representations
  3. Google Calendar API, Events Resource representations

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

七月上 2025-02-06 07:55:53
  • displayName 可用性取决于该帐户的名称设置, google profile )或从

  • 如果呼叫者和受影响的帐户在相同的Google工作区环境中,则域的用户配置文件名称。

  • 如果将该帐户添加到呼叫者的联系人中,则也可以通过People API检索其显示名称。

  • 如果受影响的帐户没有名称集,也没有呼叫者的联系人,则是预期的行为。

  • The displayName availability depends either from that account's Name set at Google profile) or from the API caller's contact List in Google Contact.

  • If the caller and the affected account are within the same Google Workspace environment, then the domain's user profile Name is taken into account.

  • If that account is added to the caller's Contacts, then it is also possible to retrieve its Display Name via People API.

  • If the affected account doesn't have a name set nor it is within the caller's contacts, that's expected behavior.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文