This file contains hidden or 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
| function getTickets() { | |
| var sheet = SpreadsheetApp.openById("SPREADSHEET_ID").getSheetByName("SHEET_NAME_WITH_SUM"); | |
| var count = sheet.getRange("LOCATION_OF_CELL"); | |
| return count.getValue(); | |
| } | |
| function doGet() { | |
| var result = { | |
| "TITLE_OF_SUM":this.getTickets() |
This file contains hidden or 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
| function doGet(request) { | |
| var output = ContentService.createTextOutput(); | |
| var data = {}; | |
| var id = "ID"; | |
| var sheet = "SHEETNAME"; | |
| var ss = SpreadsheetApp.openById(id); | |
| if (sheet) { | |
| data = readData_(ss, sheet); | |
| } | |
| output.setContent(JSON.stringify(data)); |
OlderNewer