1.1.1 • Published 2 years ago

@quantix-ict/insphire v1.1.1

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

Insphire client by Quantix

A library to use the insphire API.

Installation and Usage

Installation:

npm i @quantix-ict/insphire

Usage:

const { Insphire } = require('@quantix-ict/insphire')

const insphire = new Insphire(
  'http://<HOST_IP>:8090/insphire.office', // BASE_URL of insphire installation.
  'USERNAME',
  'PASSWORD'
)

const contractitem = await insphire.request({
  endpoint: '/contractitems',
  params: {
    overrideshortages: true,
  },
  method: 'POST',
  payload: {
    ITEMNO: 'ALU220',
  },
  testmode: false,
  depot: '100',
})

of using import:

import { Insphire } from '@quantix-ict/insphire'

const insphire = new Insphire(
  'http://<HOST_IP>:8090/insphire.office', // BASE_URL of insphire installation.
  'USERNAME',
  'PASSWORD'
)

const contractitem = await insphire.request({
  endpoint: '/contractitems',
  params: {
    overrideshortages: true,
  },
  method: 'POST',
  payload: {
    ITEMNO: 'ALU220',
  },
  testmode: false,
  depot: '100',
})
1.1.1

2 years ago

1.1.0

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago