Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google import does not work with gdata 1.2.4 #13

Open
patrys opened this issue Nov 9, 2009 · 1 comment
Open

Google import does not work with gdata 1.2.4 #13

patrys opened this issue Nov 9, 2009 · 1 comment

Comments

@patrys
Copy link

patrys commented Nov 9, 2009

The patch follows.

diff --git a/friends/importer.py b/friends/importer.py
index fdb52a6..1958a8b 100644
--- a/friends/importer.py
+++ b/friends/importer.py
@@ -87,7 +87,7 @@ def import_google(authsub_token, user):
     """
     
     contacts_service = gdata.contacts.service.ContactsService()
-    contacts_service.auth_token = authsub_token
+    contacts_service.SetAuthSubToken(authsub_token)
     contacts_service.UpgradeToSessionToken()
     entries = []
     feed = contacts_service.GetContactsFeed()
@andrewebdev
Copy link

This does solve the issue that I've been having. Except that I then get another error: Invalid AuthSub Header. Could this be related?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants