I'm writing a code (in Java) that let me get all contacts from my google account, using google API v3. My problem is that after I successfully authorize access to account I get contacts only from "Most Contacted" group. As feedURL I'm using https://www.google.com/m8/feeds/contacts/default/full/ according to this tutorial. Basically my code is copy-paste of this example, so how can I get all my contacts?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
In the documentation https://developers.google.com/google-apps/contacts/v3/#retrieving_all_contacts there is a note saying "The feed may not contain all of the user's contacts, because there's a default limit on the number of results returned" You can use query parameter to manage the information https://developers.google.com/google-apps/contacts/v3/#retrieving_contacts_using_query_parameters. Here you can find the parameters for these requests https://developers.google.com/google-apps/contacts/v3/reference#Parameters. The parameter max-results is probably the one you need.
回答2:
The correct parameter is max-results