Reputation: 11
I have been trying to write a Python script (Python2.7) to be able to read/edit/del contact information (email addresses) of users in our Google domain.
I am able to write Python scripts using service accounts (Server-to-Server Applications) for Google API Client Libraries by following authorization documentation here:
https://developers.google.com/api-client-library/python/auth/service-accounts
However have not found any structured examples that mention how to authorize service-accounts with Gdata apis (contacts api) in my case.
This link redirects to the Oauth2 page to understand authorization however it does not mention how to get it working with Gdata apis using service-accounts.
A sample code to at least read contacts of another user would be greatly helpful.
Upvotes: 1
Views: 509
Reputation: 51
I found this after a lot of search:
http://www.itkeyword.com/doc/3465474180866838576/how-to-authorise-a-gdata-contacts-client-in-python
Upvotes: 1