In the hopes of stirring a response, I am posting additional details
of my situation:
I have gdata-1.2.2.1 installed on my Linux box. The only similar
situation that I read related to using the APIs with Google AppEngine.
I should note that I am not using Google AppEngine. I am however,
running my own Django server.
When this API is installed, attempts to use the session_token (stored
after initial conversion from single use token to session token),
referred herein as authsub_token, in the following manner:
calendar_service = CalendarService()
calendar_service.auth_token = authsub_token
now = datetime.now(western)
dt = datetime.now(western) + timedelta(hours=tmdelta*24)
query = CalendarEventQuery('default', 'private', 'full')
results in the following stack trace
ERROR:root:/var/djapps/PlugAndGo//gcaldata.py:267: ex: {'status': 401,
'body': '<HTML>\n<HEAD>\n<TITLE>Authorization required</TITLE>\n</HEAD>
\n<BODY BGCOLOR="#FFFFFF" TEXT="#000000">\n<H1>Authorization required</
H1>\n<H2>Error 401</H2>\n</BODY>\n</HTML>\n', 'reason': 'Authorization
required'}
Could not get user ([email protected]) data because authorization
required
Traceback (most recent call last):
File "/var/djapps/PlugAndGo/gcaldata.py", line 265, in
update_dataset
feed = calendar_service.CalendarQuery(query)
File "/usr/lib/python2.5/site-packages/gdata/calendar/service.py",
line 116, in CalendarQuery
converter=gdata.calendar.CalendarEventFeedFromString)
File "/usr/lib/python2.5/site-packages/gdata/calendar/service.py",
line 108, in Query
result = self.Get(uri, converter=converter)
File "/usr/lib/python2.5/site-packages/gdata/service.py", line 738,
in Get
'reason': server_response.reason, 'body': result_body}
RequestError: {'status': 401, 'body': '<HTML>\n<HEAD>
\n<TITLE>Authorization required</TITLE>\n</HEAD>\n<BODY
BGCOLOR="#FFFFFF" TEXT="#000000">\n<H1>Authorization required</H1>
\n<H2>Error 401</H2>\n</BODY>\n</HTML>\n', 'reason': 'Authorization
required'}
When I use the gdata-python-1.0.13, this error does not occur.
Any pointers would be appreciated.
Alison
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---