Created
March 24, 2018 22:48
-
-
Save chemiadel/0637f5184b85ef7cafcf05a97cdabe61 to your computer and use it in GitHub Desktop.
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
//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