0.0.14 • Published 2 years ago
@instabase.com/api v0.0.14
@instabase.com/api
This is the TypeScript API library for interacting with the Instabase API layer.
Getting started
yarn add @instabase.com/api
npm install -S @instabase.com/api
Usage
import { InstabaseAPI, Database } from '@instabase.com/api';
// Access all IB APIs
const ib = new InstabaseAPI({
base: 'https://www.instabase.com',
accessToken: process.env.IB_ACCESS_TOKEN,
});
// or if you only need a single API such as Database
const dbAPI = new Database({
base: 'https://www.instabase.com',
accessToken: process.env.IB_ACCESS_TOKEN,
});
Library design
If interested in learning why certain decisions were made around the design of this library you can take a look at the design doc.