https://github.com/vaaralav/gas-boilerplate-client
An example Node.js client for Google Apps Script executable API created with gas-boilerplate
https://github.com/vaaralav/gas-boilerplate-client
apps-script gas-boilerplate google-apps-script google-oauth2 nodejs
Last synced: 2 months ago
JSON representation
An example Node.js client for Google Apps Script executable API created with gas-boilerplate
- Host: GitHub
- URL: https://github.com/vaaralav/gas-boilerplate-client
- Owner: vaaralav
- License: mit
- Created: 2018-02-07T20:33:23.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-08T14:33:01.000Z (about 7 years ago)
- Last Synced: 2024-12-25T17:12:28.286Z (4 months ago)
- Topics: apps-script, gas-boilerplate, google-apps-script, google-oauth2, nodejs
- Language: JavaScript
- Size: 13.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gas-boilerplate-client
This is an example Node.js client to demonstrate how to use [gas-boilerplate](https://github.com/vaaralav/gas-boilerplate) as an API executable and consume the API with Node.js app.
## Requirements
* yarn
* node.js
* git
* Existing Google Apps Script project bootstrapped with gas-boilerplate and deployed as executable API## Installation
```shell
git clone https://github.com/vaaralav/gas-boilerplate-client.git
cd gas-boilerplate-client
yarn
cp .env.example .env
```## Usage
### Get authorization tokens
```shell
yarn auth
```Follow the instructions and add tokens to [.env](.env).
### Use the executable API
This command calls and executes the function `foo` in the Google Apps Script defined in [.env](.env) with.
```shell
yarn start
```