0.1.13 • Published 3 years ago

appsheet v0.1.13

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

Trying to make the API integration a little simpler for node.js

ENV File

AppSheet Setup

Environment VariablesExample Value
APPSHEET_APP_ID=
APPSHEET_KEY=
APPSHEET_SEND_MAIL=true/false
SMTP_HOST=
SMTP_USER=
SMTP_PASS=
SMTP_PORT=
SMTP_SUBJ=
SMTP_DISP=
SMTP_RECP=

AppSheet API Documentation

API: The Essentials

Functions

Check if the module has loaded.

appsheet.api.test()

Add to Appsheet Table.

AppSheet API Add Documentation

appsheet.api.add(tableName, rows)

Retrieve from Appsheet Table.

AppSheet API Find Documentation

Structure

appsheet.api.find(tableName, selector, rows).then(res =console.log(res)).catch(e =console.log(e))

Example Find Function

function findAppSheetData() {
 const tableName = "MyTable"
 const stringValue = "Luciano"
 const columnName = "FirstName"
 const selector = "FILTER(tableName, CONTAINS(stringValue, columnName))"
>
 appsheet.api.find(tableName, selector).then(res ={
   console.log(res)
 })
}

Request Properties.

Invoking the API

api.properties.set(key, value)
api.properties.set('Location', "-27.5, 153.0")
api.properties.set('UserSettings', { Name: 'Ben Carless'})

Adding class to support multiple instances

const { appsheetClass } = require('appsheet')

var appkey = ""
var appid = ""

module.exports = {
  app: new appsheetClass(appid, appkey)
}
0.1.12

3 years ago

0.1.13

3 years ago

0.1.10

3 years ago

0.1.11

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.9

3 years ago

0.1.6

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.5

4 years ago

0.1.0

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.0.13

4 years ago

0.0.12

4 years ago

0.0.11

4 years ago