I'm trying to list the worksheets of a given spreadsheet. I retrieve the list of spreadsheets, and then based on the documentation:
Then examine the
link
element that hasrel="http://schemas.google.com/spreadsheets/2006#tablesfeed"
. That element'shref
value provides the URL for that spreadsheet's worksheets feed.
Thing is, only some of the entries returned contain a link
element with that rel
attribute.
Manually creating the url to look like the ones that are provided doesn't work either:
https://spreadsheets.google.com/feeds/KEY/tables
How do you list the worksheets for spreadsheets that don't provide a link to the worksheets feed?
Google's documentation regarding which feed URL's to GET and POST to are incorrect. Their examples of XML responses are also incorrect.
To get a list of worksheets for a given spreadsheet The documentation says:
The correct URL is actually in the
content
src
attribute of the entry you're after. It will look something like this:Same goes for when you're ready to add a list row to a worksheet. The documentation says:
This to is false. The URL you're after is once again in the
content
src
attribute of the worksheet entry. The XML example shows:But the actual XML you'll receive looks more like: