Skip to content

Instantly share code, notes, and snippets.

@chemiadel
Created March 24, 2018 22:48
Show Gist options
  • Save chemiadel/0637f5184b85ef7cafcf05a97cdabe61 to your computer and use it in GitHub Desktop.
Save chemiadel/0637f5184b85ef7cafcf05a97cdabe61 to your computer and use it in GitHub Desktop.
//Here's sample with doGet
function doGet(e) {
//e is an Javascript object check it in GAS Guide to know its parameters
switch(e.parameter.functionName) {
case "Hello":
runHello()
break;
case "Cool":
runCool()
break;
default:
}
}
function helloF(){
//Your code block
//We need to do an HtmlOutput because it's an Web App
return HtmlService.createHtmlOutput("Hello Back !")
}
function coolF(){
return HtmlService.createHtmlOutput("Cool back !")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment