When I get like this, an extra pair of eyes always helps. Can I check
how and if you are using the API? And that you are following the
directions here:
http://code.google.com/apis/documents/docs/3.0/developers_guide_protocol.html#DownloadingDocsAndFiles
If so, it would really help to see your code (or a small test case),
so I can test and try to reproduce.
Regards
--
Ali Afshar | http://gplus.to/aafshar | Google Developer Relations
My code is a little scattered around, but here's the gist of it (that produces the same results in the OAuth Playground)
1) Get an HMAC-SHA1 access token with "anonymous" as the consumer public and private keys (it's a desktop app). Use "https://docs.google.com/feeds/ https://spreadsheets.google.com/feeds/ https://docs.googleusercontent.com/." as the scope.
2) Obtain a documents list from https://docs.google.com/feeds/default/private/full/
3) Find a non-native document, in this case PDF, and get the src of the content tag (https://doc-08-48-docs.googleusercontent.com/docs/securesc/XXX/XXX/XXX/XXX/XXX/XXX?h=16653014193614665626&e=download&gd=true)
4) Retrieve that URL with OAuth signing. It appears as though the URL doesn't load with "&" instead of "&" in the playground.
5) Server returns a 302 redirect to https://docs.google.com/nonceSigner?nonce=iv38bfjlb63ak&continue=(previous URL)&hash=158p0dnfv7vtt1j8ndgj0qq8hj4nsac2
6) Retrieve that URL with OAuth signing. Server returns 401 error.
I hope that's enough information. I could certainly try to reformat my exact code in order to be, y'know, understandable, if that would help :)
-Keaton
Thanks for the step-by-step. I can reproduce your problem using the
OAuth playgorund, so I am going to sniff around to see what I can
find. I admit I can't see anything, but perhaps I am missing something
obvious. I'll get back to you as soon as I know.
Regards
Is this still affecting you? I am successfully downloading files now
using the step-by-step procedure in this thread.
Regards
--
Ali Afshar | www.googplus.org/ali | Google Developer Relations