sd-javascript-sdk
v0.0.2
Published
SDK for the SideDrawer API
Readme
SideDrawer JavaScript SDK
SDK for the SideDrawer API
This project embrace
tyoescript.
If you’re new to TypeScript, checkout this handy cheatsheet
Installation
To install the SDK, use:
npm install -S sd-javascript-sdk Example
Create an instance of the SDK:
const sdk = new SdSdk(); # you can target a different environment, for example: const sdk = new SdSdk('development')Then you can use the different modules to communicate with our APIs. For example, to create a record:
const sdk = new SdSdk();
const myRecord = await sdk.Records.createRecord({
token: 'My Token',
sidedrawerId: '619239517d01feacb5947f63',
recordTypeName: 'corporateDocs',
name: 'My Record Name',
description: 'My Record Description',
recordSubtypeName: 'will',
editable: true,
})