> I think you need to Set the AuthSub Token to the ContactsService like
> this:
>
>   authsub_token = parameters['token'] # URL Parameter
>   gd_client = gdata.contacts.service.ContactsService()
>   gd_client.SetAuthSubToken(authsub_token)
>   gd_client.UpgradeToSessionToken()
>   feed = gd_client.GetContactsFeed()

Thanks Julian,

This worked for me. I believe that the documentation of the python
API  ( 
http://code.google.com/apis/contacts/docs/1.0/developers_guide_python.html
) needs to be updated, since the code snippet there does not use the
SetAuthSubToken function. When that had not worked for me, I had
followed an advice in one of the forums to use the lower case versions
of the functions, hence the use of upgrade_to_session_token instead of
UpgradeToSessionToken in my code.

Thanks once again for you help.

Sabya

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Contacts API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-contacts-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to