Options
All
  • Public
  • Public/Protected
  • All
Menu

docbase-js

docbase-js

CircleCI

API client for DocBase built with TypeScript

Installation

npm:

$ npm install --save docbase-js

yarn:

$ yarn add docbase-js

Usage

Initialize

import docbase from 'docbase-js'

const { comment, group, post, tag, team, user } = docbase({
  /* Required */
  domain: 'your-team-domain',
  token: 'YourAccessToken123',

  /* Optional */
  baseUrl: 'https://api.docbase.io',
  timeout: 3000,
  version: 2
})

Call DocBase API

import docbase from 'docbase-js'

const { team } = docbase({ domain: 'your-team-domain', token: 'YourAccessToken123' })
const { data } = await team.list()

Links

License

MIT

Generated using TypeDoc