gas-run
v1.0.0
Published
Google Apps Script client library functions
Downloads
1
Readme
gas-run
Client side library to call Google Apps Script functions
Installation
First, install gas-run using npm (we assume you have pre-installed node.js).
npm install gas-run --save
Usage
app.js:
import Client from 'gas-run'
const client = new Client();
client.run('echo', 'foo').then(v => {
document.getElementById('message').innerHTML = v;
})
Code.gs
function echo(m) {
return m;
}
index.hml
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Google Apps Script API Javascript client library Example</title>
</head>
<body>
<p id="message"></p>
<script src="app.js"></script>
</body>
</html>
License
MIT © fossamagna