I am looking for a good way to get every email address of my contacts from the google account for the desktop application in Python.
The first time I created the application through Google Code. I switched the Google Plus API, extracting most of my user data, but not from my contacts.
I started an investigation and I found many things, but most of them are out of date.
I found a good way to get my contacts using the gdata library, but giving me full read / write access on it, https://www.google.com/m8/feeds without feedback.
self.gd_client = gdata.contacts.client.ContactsClient(source='MyAppliName') self.gd_client.ClientLogin(email, password, self.gd_client.source)
According to the official "google contact api" google group that has been ported to stackoverflow, read only access is compromised.
By the way, I'm not a big fan of "I trust my application, I use read-only access, I swear."
I found the google api playground in https://developers.google.com/oauthplayground in which they use the OAuth2.0 token with most of the apis, including the contact, by switching the Webpage:
The Google OAuth 2.0 Playground is requesting permission to:
According to this playground, you can use OAuth2.0 with google contact api, but I have no idea how to add https://www.google.com/m8/feeds to my scope, which does not appear on the list.
Is there any other way to do this?