Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Contacts API query for n popular contacts

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.

like image 672
BenB Avatar asked Mar 21 '23 07:03

BenB


1 Answers

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.

like image 111
Tal Avatar answered May 01 '23 09:05

Tal