Created
June 20, 2017 12:39
-
-
Save jeffgodwyll/20eac9e61b7bc1ba70d94cc97c08984c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var SPREADSHEET_ID = 'SHEET_ID_HERE'; | |
var SHEET_NAME = 'SHEET_NAME_HERE'; | |
function doGet() { | |
var range = SpreadsheetApp.openById(SPREADSHEET_ID).getSheetByName(SHEET_NAME).getDataRange(); | |
var json = JSON.stringify(range.getValues()); | |
return ContentService.createTextOutput(json).setMimeType(ContentService.MimeType.JAVASCRIPT); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment