0.1.28 • Published 2 years ago

kot-sdk v0.1.28

Weekly downloads
44
License
ISC
Repository
github
Last release
2 years ago

King of Time (KOT) SDK

npm version npm.io npm.io

Test Publish codecov dependency License

Unofficial Node.js API client for King of Time Web API.

You can find the official web api spec here.

Supported Features

These are the list of supported features.

  • Token service
  • Company
  • Admin
  • Employee
    • Get
    • List
  • Working
    • Daily
      • Record
        • Post record
      • Schedule
    • Monthly
      • Record
      • Schedule
    • Yearly

Please help me!

Install

You can install this SDK by npm:

$ npm install kot-sdk

or by yarn:

$ yarn add kot-sdk

Basic Usage

import Kot from 'kot-sdk'

const client = new Kot({token: 'YOUR_ACCESS_TOKEN'})

(async () => {
    const employee = await client.employee.get({employeeCode: 100})
})()

Options

The list of the options are described below:

OptionDescriptionTypeDefault
baseURLBase URL of the King of Time Web APIhttps://api.kingtime.jp/v1.0
timeoutTimeout in milliseconds.1000(1 second)
userAgentUser Agent HTTP header valueKOT SDK/<RELEASE_VERSION>

Note that this can be configured in multiple ways.

1. On instance creation

Pass as args as below:

const client = new Kot({
    baseUrl: "https://my-proxy.com"
})

2. With method

Configure each configuration by the Kot classes' method setXXX:

const client = new Kot().setTimeout(10000)

Author

License

kot-sdk is released under the BSD 3-Clause License. See details LICENSE.

0.1.27

2 years ago

0.1.28

2 years ago

0.1.25

2 years ago

0.1.26

2 years ago

0.1.24

2 years ago

0.1.23

3 years ago

0.1.22

3 years ago

0.1.21

3 years ago

0.1.20

3 years ago

0.1.19

3 years ago

0.1.18

3 years ago

0.1.16

3 years ago

0.1.17

3 years ago

0.1.14

3 years ago

0.1.13

3 years ago

0.1.12

3 years ago

0.1.11

3 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago