摘要
我为SaaS产品开发了Google API集成。
它的功能之一是检索Google日历中注册的活动的参与者的电子邮件和显示名称
。但是我发现许多活动参与者都有一封电子邮件,但没有DisplayName。(参考2,3)
然后,我尝试使用Google People API从电子邮件中获取DisplayName,但我找不到获得它的方法。
问题
如果您知道从Google帐户电子邮件中获取DisplayName的方法,请告诉我如何做。
参考
-
- google genualar api,事件资源资源表示
- 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
- Google Calendar API: Display Name doesn't work
- Google Calendar API, Events Resource representations
- Google Calendar API, Events Resource representations
发布评论
评论(1)
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.