This article walks through an example of how you might use Humaans API to download all the data points relevant for payroll, such as employee details, bank account, salary information.
First, to use Humaans API and access all of the right data points, you need to generate an API access token in Humaans. In the sidebar, click on Your name > API access tokens > Generate new token. Once prompted with the dialog below, select the following scopes as shown below:
View public data
View public and private data
View compensations
Now paste the generated key into API_KEYS file and save it on your computer.
Afterwards download the package.json
and fetchPayrollData.js
files from the example here.
Execute the example code by first running npm install
and then node fetchPayrollData.js
. It should connect to your Humaans account, download all the relevant people data and print it out on the screen. Adapt the code as necessary.