1
votes

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.

1
I'm not sure on how you can do it with Python, but this link might help you. What can I help you is to give this tutorial that gives an idea on how to use the service account with the Google Contacts API. For more information, check this related SO question. - KENdi
@KENdi I have been through those links before but has been of no help. - Jolty

1 Answers