提取 Gmail 的“其他联系人”通过 Google Contacts API 进行分组
我正在尝试提取我的 Gmail 联系人,以便自动完成 Gmail 中大约 3,000 个联系人的操作。使用 Google 通讯录数据 API,我可以获取(1) 默认联系人和 (2) 组的列表。
但是,(1) 默认联系人 (http://www.google.com/m8/feeds/contacts/default/full
) 仅提取我的“我的联系人”群组中的联系人,并且 (2 )当我查找我的群组时(通过交互式示例 Google提供), “其他联系人”不是可供从中提取的组。
这会导致非常糟糕的自动完成体验:我有大约 100 个“我的联系人”成员,而“其他联系人”中有 3,000 个联系人;我只能想象其他 Gmail 用户也有大致相同的情况。
我浏览了互联网,但没有找到太多内容:
到目前为止,我的备份只是要求提供用户名/密码并进行抓取(或使用 IMAP)。还有更好的出路吗?
I'm trying to pull my Gmail contacts, so I can auto-complete on the 3,000 or so contacts I have within Gmail. Using the Google Contacts Data API, I'm able to get a list of (1) default contacts and (2) groups.
However, (1) the default contacts (http://www.google.com/m8/feeds/contacts/default/full
) only pulls contacts in my 'My Contacts' group, and (2) when I look for my groups (through the interactive samples Google provides), 'Other Contacts' is not an available group to pull from.
This leads to a pretty terrible auto-complete experience: I've got about 100 'My Contacts' members, compared to 3,000 contacts in 'Other Contacts'; I can only imagine that other Gmail users are in roughly the same boat.
I've looked around the interwebs, but haven't found much:
- Google explaining directory vs private contacts
- Google explaining default contact groups
- A similar complaint on the Google Contacts API google group from 2008
So far, my backup is just asking for username/password and scraping (or using IMAP). Is there a better way out there?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于 (1),您确定您获得的是“我的联系人”,而不仅仅是“所有联系人”结果的第一页吗?来自 http://code.google.com/apis/contacts/docs/ 3.0/developers_guide_protocol.html:
“注意:源可能不包含用户的所有联系人,因为返回的结果数量有默认限制。有关详细信息,请参阅使用查询参数检索联系人中的最大结果查询参数。”
对于 (2),https://mail.google。您链接到的 com/support/bin/answer.py?hl=en&answer=97952 显示“其他联系人包括尚未分类到“我的联系人”或其他联系人组中的任何联系人。”换句话说,它不会出现,因为该组并不真正存在。
For (1), are you sure you're getting "My Contacts" and not just the first page of results for "All Contacts"? From http://code.google.com/apis/contacts/docs/3.0/developers_guide_protocol.html:
"Note: The feed may not contain all of the user's contacts because there's a default limit on the number of results returned. For more information, see the max-results query parameter in Retrieving contacts using query parameters."
For (2), https://mail.google.com/support/bin/answer.py?hl=en&answer=97952, which you linked to, says "Other Contacts includes any contacts that haven’t already been categorized into My Contacts or another contact group." In other words, it doesn't show up because the group doesn't really exist.