On Fri, Sep 12, 2008 at 4:00 AM, moparthi <[EMAIL PROTECTED]> wrote:
>
> hi,
>
> I am doing AuthSub Authentication in python. But i got stucked with
> some errors :
>
> Traceback (most recent call last):
> ...snip...
Moparthi,
It looks like you're trying to extract the token parameter before the
user has authenticated. You should wait to call _retrievecals() until
after the user has completed the login process and been redirected
back to your application with an AuthSub token.
At the very least, check for the existence of the 'token' key in
parameters before trying to extract it:
parameters = cgi.FieldStorage()
if parameters.has_key('token'):
authsub_token = parameters['token']
# Do other stuff.
--
Trevor Johns
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Calendar Data 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-calendar-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---