Mave
Mave

Reputation: 65

Google API v3 retrieving all contacts

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?

Upvotes: 1

Views: 13082

Answers (2)

Rony Tesler
Rony Tesler

Reputation: 1401

The correct parameter is max-results

Upvotes: 0

Gerardo
Gerardo

Reputation: 3845

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.

Upvotes: 2

Related Questions