0.0.1 • Published 10 months ago

@levma/timebutler-api-client v0.0.1

Weekly downloads
-
License
MIT-0
Repository
github
Last release
10 months ago

Timebutler API

This is an API for the Timebutler service. It allows one to call the defined endpoints of Timebutler as described here.

Status

This client is not production ready! (Early beta stage and subject to change)

Installation

npm i timebutlar-api-client

Configuation

Provide API keys in the .env file:

  • TIMEBUTLER_API_KEY: needed for standard calls
  • TIMEBUTLER_API_KEY_EXTENDED: optional, only needed for priviledged calls like salaries

Usage

import { absences, createTimebutlerApiCaller } from "timebutler-api-client";

const apiKey = process.env.TIMEBUTLER_API_KEY;
const caller = createTimebutlerApiCaller(apiKey!);
const result = await absences(caller);
0.0.1

10 months ago