1.0.3 • Published 7 years ago

qbase v1.0.3

Weekly downloads
370
License
ISC
Repository
github
Last release
7 years ago

QuickBase JavaScript Library for Node

Installation

npm install qbase

Usage

Populate the config object in the format seen below and pass it into the Base constructor. The "tables" object should be filled with any tables in your application you would like to interact with.

See further examples in "example.js".

var Base = require("qbase");

var config = {
  // apptoken parameter is optional
  token: "",
  realm: "xyzcorp",
  username: "john@xyzcorp.com",
  password: "password",
  databaseId: "bj3xvxtzw",
  tables: {
    customers: {
      dbid: "bj3xvxt6t",
      rid: 3
    }
  }
};

var db = new Base(config, function(){
  // subsequent calls must be made within this callback
  db.customers.all({ clist: ["rid"] }, function(response){
    // response == query results
  });
});
1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

2.0.1

8 years ago

2.0.0

8 years ago

1.0.0

9 years ago