-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Description
Also one another script
/**
- This function is executed when a POST request is made to the published
- script URL. It appends the SMS details as a row in first sheet in the
- spreadsheet bound to the script.
- For documentation about the request parameter
eplease see: - https://developers.google.com/apps-script/guides/web#request_parameters
*/
function doPost(e) {
let sms = JSON.parse(e.postData.contents);
let sheet = SpreadsheetApp.getActive().getSheets()[0];
sheet.appendRow([sms.from, sms.messageType, sms.sim, sms.sentStamp, sms.receivedStamp, sms.text]);
return ContentService
.createTextOutput(JSON.stringify({}))
.setMimeType(ContentService.MimeType.JSON);
}
Metadata
Metadata
Assignees
Labels
No labels


