Andrew
Andrew

Reputation: 3613

Google api GetContacts Max Results Python

How do I increase the max results:

contacts_client = gdata.contacts.client.ContactsClient(domain=domain)
myContacts = contacts_client.GetContacts(max_results=100)

Upvotes: 1

Views: 325

Answers (1)

Andrew
Andrew

Reputation: 3613

Here's the answer:

contacts_client = gdata.contacts.client.ContactsClient(domain=domain)
query = gdata.contacts.client.ContactsQuery()
query.max_results = 100
myContacts = contacts_client.GetContacts(q=query)

Upvotes: 2

Related Questions