Why are you using YouTube's ClientLogin?You should be using an Auth token
obtained from
https://www.google.com/accounts/ClientLogin

Eric

On Mon, Jun 8, 2009 at 6:18 AM, madalla <mary.ada...@gmail.com> wrote:

>
> Hi,
>
> I have a problem to upload a plain txt to Google Doc.
>
> Here is what I'm doing:
>
>                        httpReq.openConnection("
> http://docs.google.com/feeds/documents/
> private/full");
>                        httpReq.setMethod("POST");
>                        httpReq.setProperty("GData-Version", "2.0");
>                        httpReq.setProperty("Content-Type", "text/plain");
>
>                       // aTxt is the content of a txt file
>                        httpReq.setProperty("Content-Length",
> Integer.toString(aTxt.length
> ()));
>                        httpReq.setProperty("Slug", "myname");
>
>                       // mAuthCode is my authorization code which I
> got from
>                       // "https://www.google.com/youtube/accounts/
> ClientLogin"
>                        httpReq.setProperty("Authorization", "GoogleLogin
> auth=" +
> mAuthCode);
>
>                        httpReq.writeStream(aTxt);
>                        String requestValue = httpReq.readStream(null);
>
> After writeStream, I got "503, Service Unavailable". I'm not using the
> Google Doc API but my own library. I can succesfully to get the file
> list of my Google Doc.
> Could somebody tell me what might be wrong?
>
> Thanks,
> Mary
> >
>

--~--~---------~--~----~------------~-------~--~----~
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