Try running it from a non-local env (e.g. not file://)
Eric

On Thu, Jun 11, 2009 at 2:30 AM, VuDu <vudu.cu...@gmail.com> wrote:

>
> I've tryed your sample code here:
>
> http://gdatatips.blogspot.com/2008/12/using-javascript-client-library-w-non.html
> (btw, thanks for that) but it seem to b no longer working. :(
> ----------
> The page you have requested cannot be displayed. Another site was
> requesting access to your Google Account, but sent a malformed
> request. Please contact the site that you were trying to use when you
> received this message to inform them of the error. A detailed error
> message follows:
>
>    The "next" parameter was bad or missing.
> ----------
> Does that sample show a google page asking for autentication? Could
> you give some guidance on how to provide the autentication data
> transparently to the user? Does it require the use of
>
> http://code.google.com/apis/gdata/jsdoc/1.7/google/gdata/client/GoogleService.html#setUserCredentials
> ?
>
> Best regards ;)
>
> On Jun 10, 12:33 am, VuDu <vudu.cu...@gmail.com> wrote:
> > Got it! I see what you mean. :)
> >
> > Yes, the application would use that account for all the users
> > documents.
> >
> > Now the issue is how to make that link with the GET+header so that the
> > user may download the file.
> > This is not the right place for those questions, but if anyone could
> > give me some guidance on that matter, it'd help a lot.
> >
> > Thanks.
> >
> > On Jun 10, 12:00 am, "Eric (Google)" <api.e...@google.com> wrote:
> >
> > > As long as the request to download the link
> > > is authenticated, meaning you're sending a valid
> > > AuthSub/oAuth/ClientLogin token in the Authorization
> > > header, then YES.
> >
> > > So your app would authenticate on the single
> > > 'shared' account?
> >
> > > Eric
> >
> > > On Jun 9, 3:00 pm, VuDu <vudu.cu...@gmail.com> wrote:
> >
> > > > Hello,
> > > > I'm creating a Java WebApplication that manages contents of one
> static
> > > > account, like a document repository.
> > > > The user can already upload files to the application (that are
> > > > uploaded to that account) and should be able to retrieve files (from
> > > > that same account).
> >
> > > > Can I provide the client a direct download link to a document?
> > > > The information found herehttp://
> code.google.com/apis/documents/docs/2.0/developers_guide_proto...
> > > > points to authentication methods that make the user manually provide
> > > > the username and password but I don't want that. I'd like to be able
> > > > to give a direct link to a document from that "static account" so
> that
> > > > a user could download it without directly knowing the account the
> > > > document is in.
> >
> > > > Best regards.
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Docs Data APIs" group.
To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com
To unsubscribe from this group, send email to 
google-docs-data-apis+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Docs-Data-APIs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to