Hi again, Yes, unfortunately it only works with ClientLogin right now. You can raise this problem again in the Docs API group, though I think a fix is being pursued.
Cheers, -Jeff On May 27, 6:36 pm, Violet <[EMAIL PROTECTED]> wrote: > I'm using AuthSub authentication, and the Authentication: header is > definitely getting sent. Will this only work with ClientLogin > authentication? > > On May 27, 12:41 pm, "Jeff Fisher (Google)" <[EMAIL PROTECTED]> > wrote: > > > Hi, > > > I believe retrieving the URL is supposed to work as long as you send > > the ClientLogin token along with your request. I'm not sure how easy > > this is to do with the Python client library as you'd probably have to > > dig out the ClientLogin token manually and then add the Authorization > > header by hand. I believe there is a method to do the former and you > > could use httplib to make the request. > > > You may also want to ask in the Docs API group incase someone has done > > something similar: > > >http://groups.google.com/group/Google-Docs-Data-APIs > > > Cheers, > > -Jeff > > > On May 26, 1:25 pm, Violet <[EMAIL PROTECTED]> wrote: > > > > I'm having a terrible time getting the contents of a document. > > > > On the plus side: everything else is working great! > > > > I can authenticate with AuthSub and get a list of my documents. The > > > content srcs look like: > > > >http://docs.google.com/RawDocContents?action=fetch&justBody=false&rev...... > > > > Which is spiffy. > > > > Now what? > > > > I've tried using Get() (with an identity result transformer to avoid > > > parse errors), but Google responds with a redirect to... the Google > > > Docs login page. I haven't looked with a wire analyzer, but it really > > > looks like Get() is sending the appropriate Authentication header. > > > > I've tried using GetMedia(), as if that will do something different. > > > In fact, it does do something different -- it doesn't follow the > > > redirect, so I just see the 302. Great. > > > > The only thing I can think of is that maybe I'm not authenticating in > > > the right scope. Right now I'm > > > usinghttp://docs.google.com/feeds/documents, > > > because that's the only thing that seems to work --http://docs.google.com > > > fails. > > > > The content URL is correct -- when I'm logged in, I can navigate there > > > directly and see the document contents. > > > > What am I missing? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Data Protocol" 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-help-dataapi?hl=en -~----------~----~----~----~------~----~------~--~---
