A ClientLogin or ProgramamticLogin is required before you
can access even public docs.
The Google spreadsheet example is pretty good.
Regards,
Bill Hayes


On Sep 21, 5:17 pm, yanng <ygib...@gmail.com> wrote:
> I created a public spreadsheet. Here is the url:
>
> http://spreadsheets.google.com/ccc?key=0AvfttPfmmd_ydDlLYWFVcENaLVp3N...
>
> I am trying to use the Google Docs Data API to access it, without
> setting the credentials, and it fails:
> This is the code I'm using:
>
>             service = new SpreadsheetsService("Test");
>
>             WorksheetQuery query = new WorksheetQuery
> ("0AvfttPfmmd_ydDlLYWFVcENaLVp3NGVJMzJJdFBvdGc", "public", "full");
>             //query.Uri = new Uri("http://spreadsheets.google.com/ccc?
> key=0AvfttPfmmd_ydDlLYWFVcENaLVp3NGVJMzJJdFBvdGc&hl=en");
>
>             WorksheetFeed feed = service.Query(query);
>
> And the program fails on the last line of code.
> What am I doing wrong?
>
> Thanks for your help>
--~--~---------~--~----~------------~-------~--~----~
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