Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 1.13 KB

File metadata and controls

42 lines (29 loc) · 1.13 KB

hailey-api-client

HaileyApiClient is a third party Hailey API client for NodeJS. It is a wrapper around an API client that has been automatically generated using the OpenAPI schema provided by Hailey.

Installation

Add to project's package.json:

npm install @rantalainen/hailey-api-client

Import

import { HaileyApiClient } from '@rantalainen/hailey-api-client';

Setup client with options

In order to obtain an API key, please contact Hailey Support. An API key is needed to access all API functions.

const hailey = new HaileyApiClient(
  {
    accessToken: 'accessToken'
  },
  {
    baseURL: 'https://api.demo.haileyhr.app/'
  }
);

const response = await hailey.api.employees.employeesList();

Available methods can be found in the API documentation.

Resources