When you call run_on_appengine, the gdata python library assumes that you will be using AuthSub or OAuth, and there are a couple of extra parameters I recommend using when you are using ClientLogin (aka ProgrammaticLogin). This is explained in the appendix at the end of this article:
http://code.google.com/appengine/articles/gdata.html gdata.alt.appengine.run_on_appengine(client, store_tokens=False, single_user_mode=True) Happy coding, Jeff On Apr 8, 7:31 am, c4mden <goo...@jaunter.com> wrote: > Hello all. > > I'm having a basic problem using the google calendar through the app > engine, and was wondering if anyone could help. > > I can login correctly using ProgrammaticLogin, but whenever I try to > pull a calendar feed, I receive 'Authorization Required'. Could > anyone explain? It seems that maybe the login credentials I receive > are perhaps not being passed on to the google calendar properly? > > The code I'm using is as follows: > > import logging > import gdata.service > import gdata.auth > import gdata.alt.appengine > import gdata.calendar > import gdata.calendar.service > > calendar_service = gdata.calendar.service.CalendarService() > gdata.alt.appengine.run_on_appengine(calendar_service) > calendar_service.email = "##username##" > calendar_service.password = "##password#" > calendar_service.source = "jauntertest1" > calendar_service.ProgrammaticLogin() > > feed = calendar_service.GetOwnCalendarsFeed() --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---