paismo-integration-sdk

1.0.2 • Public • Published

This package is created by Paismo HR that allows their clients to upload timesheets (Employees data) to their server.

functions

This package has two functions:

  1. init(client_id, client_secret)
  2. pushData(data)

init(client_id, client_secret)

This functions initializes the package so that the data can be sent to Paismo HR's server. It expects a client_id and client_secret.

pushData(data)

This functions sends the given data to Paismo HR's server. It expects the json data in the following format:

[
    {
      "company_employee_id": "12345",
      "start_time": "2023-08-10T09:00:00",
      "end_time": "2023-08-10T05:00:00"
    },
    {
      "company_employee_id": "12345",
      "start_time": "2023-08-10T09:00:00",
      "end_time": "2023-08-10T05:00:00"
    },
    ...
]

If you face any issues or have any queries. You can reach out to us at abdullah@paismo.com :D.

Package Sidebar

Install

npm i paismo-integration-sdk

Weekly Downloads

1

Version

1.0.2

License

ISC

Unpacked Size

5.72 kB

Total Files

5

Last publish

Collaborators

  • ferido07