Skip to content

Instantly share code, notes, and snippets.

View ex-preman's full-sized avatar

Yusuf Septiananda ex-preman

  • Jakarta, Indonesia
View GitHub Profile
@ex-preman
ex-preman / Code.gs
Last active November 7, 2024 17:45
CRUD Using Google Apps Script
function doGet(e) {
Logger.log(e);
var op = e.parameter.action;
var ss = SpreadsheetApp.open(DriveApp.getFileById("YOUR_SPREADSHEET_ID"));
var sn = "YOUR_SHEET_NAME";
var sheet = ss.getSheetByName(sn);
if (op == "insert")
return insert_value(e, sheet);