I can't work out how to access a google spreadsheet via JSONP when that spreadsheet is part of a Google Apps For Your Domain account.
Google provide a documented way to access google spreadsheet via JSONP that works for normal gmail.com accounts. In short:
- Create a spreadsheet
- Click on the dropdown next to "Share" and select "Publish as a web page"
- Copy and paste out the key from the URL that shows (i.e. the bit after &key=)
- Go to https://spreadsheets.google.com/feeds/list/0AmHYWnFLY1F-dG1oTHQ5SS1uUzhvTnZTSHNzMjdDaVE/od6/public/values?alt=json-in-script&callback=myCallback replacing "0AmHYWnFLY1F-dG1oTHQ5SS1uUzhvTnZTSHNzMjdDaVE" with whatever key you cut out of the url
When I try this on my own domain everything seems to work. But when I visit the URL I have constructed as above google gives the error:
The spreadsheet at this URL could not be found. Make sure that you have the right URL and that the owner of the spreadsheet hasn't deleted it.
I assume there's some permission problem or some kind of alternative url I should be using, but I can't find any documentation otherwise.
The data that comes back is pretty hairy, though. You can use YQL to get cleaner data:
If you want to name the keys, you can add:
Try it here with your spreadsheet; you should get this (I named the column "task"):