hibob-sdk
v1.0.1
Published
A TypeScript SDK for the HiBob API
Readme
HiBob SDK
The package provides a TypeScript SDK for the HiBob API, allowing developers to easily interact with the HiBob platform.
Useful Links
Installation
You can install it using yarn or any other package manager:
yarn add hibob-sdkDon't forget to setup peer dependencies:
yarn add axios @hey-api/client-axiosUsage
You can find simple examples in the sandbox directory. Here is a basic example of how to use the SDK:
import { client, postPeopleSearch } from 'hibob-sdk'
// Set up the client with your HiBob credentials
client.setConfig({
auth: () => `${process.env.HIBOB__USERNAME}:${process.env.HIBOB__PASSWORD}`,
})
// Perform a basic request to the HiBob API
const response = await postPeopleSearch({
body: { fields: ['/root/id'] },
})
console.log(response.data)Contributing
I welcome contributions! Follow these steps to contribute:
- Setup environment
- Fork the repository.
- Clone your forked repository.
- Install dependencies by running
yarn install. - Generate the local client artifacts by running
yarn generate:client.
- Making Changes
- Create a new branch for your changes.
- Make your changes and commit them.
- Push your changes to your forked repository.
- Submitting a Pull Request
- Go to the original repository on GitHub and click the "New pull request" button.
- Select your branch and submit the pull request.
- Wait for the review and address any feedback.
You are the star of this project! 🌟
