Skip to content

Instantly share code, notes, and snippets.

View verbiate's full-sized avatar

Hans van de Bruggen verbiate

View GitHub Profile
@poteto
poteto / gas_sheet_as_json.js
Created March 29, 2018 22:05 — forked from chrsstrm/gas_sheet_as_json.js
Treat a Google Sheet like a JSON API
/**
* create a Google Sheet then go to Tools > Script Editor
* Paste this code into the editor. Save.
* Publish > Deploy as Web App
* Set new version, publish as me, who has access - anyone, even anon.
* GET to the URL, add on end ?sheet=[sheet name]
* Sheet name is the sheet name, manage appropriately (no spaces or symbols to keep it simple)
* Request returns JSON representation of the sheet.
*/