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&revision=_latest&editMode=false&docID=...

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 using http://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
-~----------~----~----~----~------~----~------~--~---

Reply via email to