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
// EXAMPLE REQUEST BODY | |
{ | |
"data": [ | |
{ | |
"original": "Hello, My name is Burak" | |
}, | |
{ | |
"original": "I'm a software developer" | |
}, | |
{ |
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
// Author: Burak Fircasiguzel <github.com/burakfircasiguzel> | |
// Post requests are processed within the doPost(e) method in Google Apps Script | |
function doPost(e) { | |
// In POST requests, parameters and variables are contained in e.postData.contents as a default | |
var datas = JSON.parse(e.postData.contents); | |
// This is the JSON object that will return as the response we created. | |
var response = { |