google / gdata-python-client

444 stars 228 forks source link

Bug GetContactsFeed? #26

Open sotnikov-link opened 9 years ago

sotnikov-link commented 9 years ago

I was could not get contacts from service "Google Contacts". But I found the solution on the Internet: http://pbxinaflash.com/community/index.php?threads/google-contacts-to-asterisk-phonebook.10943/page-2#post-95132

Thank you for attention!

My code as example:

# encoding: utf-8
import gdata.contacts.service

GOOGLE_EMAIL = 'login@gmail.com'
GOOGLE_PASSWORD = 'mypassword'

client = gdata.contacts.service.ContactsService()

client.ClientLogin(GOOGLE_EMAIL, GOOGLE_PASSWORD)

feed = client.GetContactsFeed()
pmiddlet72 commented 9 years ago

ClientLogin() is no longer supported. All app authorizations are done with OAuth2. See #24, #20 . Duplicate issues.