Template structure for web user interface, created using Google AppsScript HtmlService
https://developers.google.com/apps-script/import-export https://www.youtube.com/watch?v=lEVMu9KE6jk https://github.com/soundTricker/gas-manager/
Create project and enable Drive SDK and Drive API in Google API Console Inside chosen dir, run
$ npm install gas-manager
Then:
$ gas init
- Enter clientID (omitting .apps.googleusercontent.com)
- Enter Client secret
- Create refresh-token
- Create project file
This set up will create two files:
- gas-config.json
- gas-project.json
(These are in .gitignore as they're specific to each user).
Creating build script Tools > Build System > New Build System
{
"working_dir": "${project_path}",
"cmd": ["gas", "upload"],
"path": "/usr/local/bin/"
}
- iframe nested within table > messy code
- "Caja Sanitization" Used to detect security violations i.e. external services with auth tokens (requring cookies) won't work
- Quote from Docs: "(Very old browsers, including Internet Explorer 8 and below, are usually incompatible with Html Service.)" https://developers.google.com/apps-script/
- Difficulties loading separate views.
- Strips out onclick attributes.