Getting Started
In this section, we will show you how to start using Busy Hour API through our Node Js SDK.
Prerequisites
- Busy Hour Account (Sign Up if you don't have one yet)
- Create a Busy Hour Project from the Dashboard/Projects
- Generate an API Key from the Dashboard/Projects
Installation
- NPM
- YARN
- PNPM
npm i @busy-hour/node
yarn add @busy-hour/node
pnpm add @busy-hour/node
Setting Up
To start using the Busy Hour API from NodeJs SDK, you need to import the BusyHourNode
class from @busy-hour/node
package. The class itself takes an object as an argument that contains the API key. For more information, you can refer to the code snippet below.
src/index.ts
import { BusyHourNode } from '@busy-hour/node';
// Create an instance of BusyHourNode with your API key (Master/Project)
const nodeSdk = new BusyHourNode({
apiToken: 'your-api-token',
});