Created
April 11, 2022 07:42
-
-
Save tauheed0007/e2f3454036ab0313866cac8345d3348a to your computer and use it in GitHub Desktop.
Google script app for Post data from android app to Google Sheet
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
function doGet(e) { | |
handleFunction(e); | |
} | |
function doPost(e) { | |
handleFunction(e); | |
} | |
function handleFunction(request){ | |
var name = request.parameter.name; | |
var country = request.parameter.country; | |
var id = request.parameter.id; | |
var ss = SpreadsheetApp.openById(id); | |
var sheet = ss.getSheetByName("Sheet1"); | |
var rowContent = sheet.appendRow([name,country]); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment