quickbaseapi
v1.0.0
Published
_\$ npm i --save quickbaseapi_ _ Set env variable AUTHORIZATION with token like AUTHORIZATION=QB-USER-TOKEN xxxxxxxxxxxxxxxx_
Downloads
3
Maintainers
Readme
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: fields[1].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 }