Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 28th, 2012  |  syntax: None  |  size: 0.32 KB  |  hits: 10  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #!/usr/bin/python
  2.  
  3. import gdata.contacts.service
  4.  
  5. gd_client = gdata.contacts.service.ContactsService()
  6. gd_client.ClientLogin('username@domain.com', 'password')
  7. query = gdata.contacts.service.ContactsQuery()
  8. query.max_results = 500 # change for max contacts returned
  9. feed = gd_client.GetContactsFeed(query.ToUri())
  10.  
  11. print feed