1.1.1 • Published 1 year ago

@quantix-ict/insphire v1.1.1

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year 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

1 year ago

1.1.0

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago