1.0.0 • Published 4 years ago

quickbaseapi v1.0.0

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

The Node.js module for Quickbase APIs.

Installation

\$ npm i --save quickbaseapi Set env variable AUTHORIZATION with token like AUTHORIZATION=QB-USER-TOKEN xxxxxxxxxxxxxxxx

In Node.js:

const { App, Table, Report, Field, Record, Auth } = require('quickbaseapi');

Default options

let defaultOptions = { appId: appId, realm: realm, method: "GET", dbid: appId };

Methods

APP

apps

Table

createTable,

customoptions = { body: body, method: "POST" };

getAppTables,

getTable,

customoptions = { tableId: table.id, };

updateTable,

customoptions = { body: body, method: "POST", tableId: table.id, }

deleteTable

customoptions = { method: "DELETE", tableId: table.id, }

Report

getReports,

customoptions = { tableId: table.id, }

getReport,

customoptions = { reportId: reportId, tableId: tableId }

runReport,

customoptions = { reportId: reportId, tableId: tableId, method: "POST" },

Field

getFields,

tableId: tableId }

createField,

{ method: "POST", tableId: tableId, body: body }

deleteFields,

{ method: "DELETE", tableId: tableId, body: body }

getField,

{ tableId: tableId, fieldId: fieldId }

updateField,

{ method: "POST", tableId: tableId, body: body, fieldId: fields1.id }

usageOfFields,

{ tableId: tableId }

usageOfField,

{ tableId: tableId, fieldId: fieldId }

Record

insertRecords,

{ method: "POST", body: body }

UpdateRecords,

{ method: "POST", body: body }

deleteRecords,

{ method: "DELETE", body: body }

queryData,

{ method: "POST", body: body }

Auth

token