Skip to content

Instantly share code, notes, and snippets.

@joet3ch
Created November 2, 2011 00:48
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joet3ch/1332504 to your computer and use it in GitHub Desktop.
Save joet3ch/1332504 to your computer and use it in GitHub Desktop.
#!/usr/bin/python
import gdata.contacts.service
gd_client = gdata.contacts.service.ContactsService()
gd_client.ClientLogin('username@domain.com', 'password')
query = gdata.contacts.service.ContactsQuery()
query.max_results = 500 # change for max contacts returned
feed = gd_client.GetContactsFeed(query.ToUri())
print feed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment