gid=N and sheet=N seem to be equivalent when manually specifying a sheet to download given a documents list feed entry URI for a spreadsheet.
How can I enumerate all values of gid programmatically? I tried using the sheet names from the worksheet feed obtained from the documents list feed entry, but that results in an "invalid sheet" error. How can I programmatically download all sheets from a given spreadsheet, without guessing at gid values?
