Live data from Hacker News

Show HN: Turn a Google Spreadsheet into an API

sheetsu.com

61–70 of 103 posts

Re: Show HN: Turn a Google Spreadsheet into an API

#61

I see that you request access to 'view and manage' the spreadsheets and files in my Google Drive? Is this for each spreadsheet/file or just the one I've linked to the in URL?

Right now it's for all. I'm actually fixing it right now, to be access only for the one specific file.

Re: Show HN: Turn a Google Spreadsheet into an API

#62

I see that you request access to 'view and manage' the spreadsheets and files in my Google Drive? Is this for each spreadsheet/file or just the one I've linked to the in URL?

Right now it's for all. I'm actually fixing it right now, to be access only for the one specific file.

Perfect! That was the only thing holding me back from getting started. Nice work, BTW!

Re: Show HN: Turn a Google Spreadsheet into an API

#63
Used this approach at a previous company and was amazed at first. Wondered why it wasn't more commonly used. A poor mans API! Whats not to like?? Then I found out why: when put under any kind of load it completely falls over and stops sending data at all. Also randomly would throw security/authentication errors that none of our devs noticed because it only happened on windows and older versions of OSX (we were a Linux shop). Its a fun and novel approach but should never be used in a production application that needs to scale.

Re: Show HN: Turn a Google Spreadsheet into an API

#66

I've used Google Spreadsheet as an "API" before (manually, not using this wrapper), and it is definitely not made to be used as such. Under heavy load, it slows down or times out, and even under the best circumstances it's not exactly fast. It's great in a pinch. My use-case was a spreadsheet that others in my organization wanted to edit, then we'd pull the data onto a web page and display nicely. It worked, but even…

One thing you can do to make this use-case work better is to combine the spreadsheet as API with a static site generator.

I made this very basic plugin for Jekyll:

https://github.com/netlify/jekyll-gdrive

That'll let you use a Google spreadsheet as a datasource and expose the data to your liquid templates.

Combine it with something like https://www.netlify.com that'll run the builds for you and let you trigger builds via webhooks, and you have a Google spreadsheet based publishing engine where the final sites are completely static and live straight on a CDN.

Used it for one site where we used the scripting options of Google spreadsheets to add a "Publish Now" image button to the sheet, so in the end user could edit the the sheet, and then press "Publish" to trigger a build+deploy.

If the users are already used to spredsheets, it can be a really handy little anti CMS :)

[disclaimer: I'm a founder of netlify]

Re: Show HN: Turn a Google Spreadsheet into an API

#67
Cloudstitch is another service that gives you a RESTful interface over a Google Sheet. http://www.cloudstitch.com/

I made a video showing how to send a Raspberry Pi's temperature sensor data to a Google Sheet using Cloudstitch. https://www.youtube.com/watch?v=Cqa9Zkm7pCU

Re: Show HN: Turn a Google Spreadsheet into an API

#68

So I threw this into a website to try and load some data into a table, and get: XMLHttpRequest cannot load http://sheetsu.com/apis/d54d6315?sort=Description&order=asc . No 'Access-Control-Allow-Origin' header is present on the requested resource. How do I handle that?

I ran into the same thing. Sheetsu apparently doesn't have CORS (http://www.html5rocks.com/en/tutorials/cors/) enabled so it won't work from client-side JS right now.

Re: Show HN: Turn a Google Spreadsheet into an API

#69

I've used Google Spreadsheet as an "API" before (manually, not using this wrapper), and it is definitely not made to be used as such. Under heavy load, it slows down or times out, and even under the best circumstances it's not exactly fast. It's great in a pinch. My use-case was a spreadsheet that others in my organization wanted to edit, then we'd pull the data onto a web page and display nicely. It worked, but even…

[deleted]
Post reply on HN