Hi It turned out it was the type of SpreadsheetQuery - it exists in both namesspaces. I need the Documents.SpreadsheetQuery for retrieving files and Spreadsheets.SpreadsheetQuery for traversing files internally - but it's not obvious as the service accepts both.
I was blissfully aware there was two until I found a working example I was able to analyze. But it cost me a day going down blind alleys. Thanks On 4 December 2012 00:31, Vic Fryzel <[email protected]> wrote: > Hey Alastair, > > I think you are mixing up SpreadsheetQuery and DocumentsListQuery. You're > using DocumentsListQuery.documentsBaseUri, instead of the base URI for a > SpreadsheetQuery. > > Thanks, > Vic > > > -Vic > > > > On Mon, Dec 3, 2012 at 2:27 AM, Alastair Todd <[email protected]>wrote: > >> So, the examples show you how to fetch a spreadsheet feed that gets ALL >> spreadsheets on the drive. >> >> What is the format for setting the query.Uri? If i use entry.SelfUrl, or >> the following code, I get a 404 bad request >> >> SpreadsheetQuery query = new SpreadsheetQuery(); >>> query.Uri = new Uri(string.Format("{0}/{1}", >>> DocumentsListQuery.documentsBaseUri, entry.ResourceId)); //404 >>> // query.Url = entry.SelfUri.Content; //also a 404 >> >> >> How do I fetch just one file? >> > >
