aturnos
v1.0.1
Published
Lib to call aTurnos functions
Downloads
1
Readme
aTurnos
Aturnos is a HR cloud application. We have a lot of tools to manage your employees.
Table of contents
Getting Started
It is the first version of our node library. You can:
- Authentication tokens:
- Generate.
- Close.
- Refresh.
- Aturno (team):
- Import Users.
- Get users.
- Get Logs.
- Get shift types.
- Checkin
- Send new checkin.
- Get checkins.
- Users
- Get aturnos (teams).
- Insert abseteeismPeriods.
- Get Payrolls.
- Get schedule.
- Insert events.
- Get events.
- Get users of all my teams.
Installation
To install and set up the library, run:
$ npm install aturnos
Examples
Generate new token
let email = "[email protected]";
let password = "xxxxxx";
let token = new AtToken();
token = await token.generateToken(email, password);
console.log('Generated token:\n', token)
Get teams
let id_user = "0";
let email = "[email protected]";
let user = new AtUser({id_user: id_user, email: email});
let teams = await user.getTeams(token)
console.log('Teams:\n',teams);
Versioning
- 2024-04-23: 1.0.1 First Version.
Authors
- Carlos Mohedano - Initial work - Carlos Mohedano