Deskbookers JavaScript SDK
JavaScript library to connect to the Deskbookers API. Available to use server-side or client-side, but you must bring your own fetch
polyfill (fetch-everywhere
recommended).
Installation
npm install deskbookers
Overview
import 'fetch-everywhere'
import Deskbookers from 'deskbookers'
const deskbookers = new Deskbookers()
Every resource can be accessed via the Deskbookers instance:
deskbookers.workplaces.retrieve('workplaceId')
And every resource returns a Promise
, so you can chain them together or use async/await
:
const workplaces = await deskbookers.workplaces.retrieve(params)
for (let workplace of workplaces) {
}
Available resources & methods
- account
- actions
- workplaces
- events