I’m building an application which uses the Python gdata library to access Google Contacts and I need to authenticate via that library in order to make my requests work. I’m kind of new to this, but basically I’m building a service that runs on a cron job to pull contacts from Google in order to back them up to a local database.
How do I trigger the authentication before I run get_contacts() on the gdata.contacts.client.ContactsClient object? Is there a way I can display either a WebKit browser or use the default browser to authenticate the application? Other than the authentication, it’ll be a command line application which will run in the background. How do I do this?
This is for Google Docs, but i think the practice is the same?
More info: http://code.google.com/apis/gdata/articles/python_client_lib.html