- #!/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