Google Contacts API query for n popular contacts

好久不见. 提交于 2019-12-06 05:56:15

问题


is there are way to query only n popular contacts ? for example something like:

http://www.google.com/m8/feeds/contacts/default/full?alt=json&max-results=50&popular=true

that will return only the 50 popular contacts. (like in gmail contacts there is 20 popular contacts).

if there is isn't a way to query that, is there a way to check which of all contacts sre most popular. popular= more email activity with them then with others.

thanks.


回答1:


I have struggled with this for quite sometime. Internet research suggests that this was removed from the API a few years ago, mostly since the "Most Contacted" section of the Google Contacts is inaccurate.
To perform the task of fetching the "most contacted" I'm requesting the user for readonly mail permission, and am actively reading the last 3 months email headers. This produces the same results, but with a huge privacy penalty. I wish google would've supported this natively.



来源:https://stackoverflow.com/questions/20601791/google-contacts-api-query-for-n-popular-contacts

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!