Well, if you're using the 2.0 version of the protocol, you'd refer to the respective reference document, to see if it is supported, I guess.
That "sq=" looks wrong .. isn't it "q=" from the GData Protocol? Doesn't the C# ListQuery object have a .MaxResults property? Unfortunately, with Google's code libraries, they offer only a very thin abstraction over the protocol(s) themselves, and to use them competently, you've got to grok the protocol anyhow. And then you've got to speculate how they 'objectified' the protocol (as I just did just now, without having laid eyes on the C# client library object model or any class-member documentation). Once you feel you know what you should be issuing, use a manual environment such as the OAuthPlayground (Google it) to test it, noting the full HTTP requests and responses. For example, after getting it to work with 3.0, you can play around with giving different version headers and see if it works for 2.0. Can you make your client library emit the same HTTP requests? If in the end, you feel that you're right and Google is wrong, then you'd raise an issue at http://code.google.com/a/google.com/p/apps-api-issues/issues/list?q=label:API-Spreadsheets Hope that helps, David. On Thu, Feb 16, 2012 at 5:58 AM, Anders Both <[email protected]> wrote: > Thanks David. > > I did this: > ListQuery listQuery = new ListQuery(listFeedLink.HRef.ToString()); > listQuery.SpreadsheetQuery = "max-results=2"; > ListFeed listFeed = service.Query(listQuery); > > But its not working :( > > Googles response is: > > GDataRequest.Execute(): GDataRequest::Execute failed: > https://spreadsheets.google.com/feeds/list/tytNx33fHZRJAe5j7l5t8Dg/ocv/private/full?sq=max-results=2 > [19:49:13:2908] - Not a server error. Possibly a Bad request or forbidden > resource. > [19:49:13:2908] - We don't want to retry non 500 errors. > > Hmm, is this because i am using c# with Version 2.0 ? > > Any good ideas are still welcome. > > Best regards, Anders >
