@quantix-ict/insphire
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

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',
})

Readme

Keywords

Package Sidebar

Install

npm i @quantix-ict/insphire

Weekly Downloads

2

Version

1.1.1

License

ISC

Unpacked Size

13.5 kB

Total Files

8

Last publish

Collaborators

  • quantix-ict