npm install @oneblink/sdk --save
This SDK is the entry point for all OneBlink Productivity instances. The default instance is the OneBlink Console. To use a different tenant to the default, change the require path to include the desired tenant. The available tenants are:
const OneBlink = require('@oneblink/sdk')
// or
const OneBlink = require('@oneblink/sdk/tenants/oneblink')
const CivicPlus = require('@oneblink/sdk/tenants/civicplus')
Once the SDK has been required
, all class documentation below applies to all tenants. However, all of the examples use the default tenant. If you copy and paste from the examples, please don't forget to change (replacing my-tenant
with a valid tenant path):
const OneBlink = require('@oneblink/sdk')
// to
const MyTenant = require('@oneblink/sdk/tenants/my-tenant')
This SDK also supports Typescript Modules:
import * as OneBlink from '@oneblink/sdk'
Various Types used in this package can also be imported:
import * as Types from '@oneblink/sdk/types'