gas-run

1.0.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i gas-run

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • fossamagna