Skip to content

Instantly share code, notes, and snippets.

@joet3ch
Created September 17, 2010 03:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joet3ch/583607 to your computer and use it in GitHub Desktop.
Save joet3ch/583607 to your computer and use it in GitHub Desktop.
#!/usr/bin/python
''' print all google contacts in xml '''
import gdata.contacts.service
gd_client = gdata.contacts.service.ContactsService()
gd_client.ClientLogin('joe@yomomma.com', 'XXXXXXXXX')
query = gdata.contacts.service.ContactsQuery()
query.max_results = 500
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