Skip to content

Quantix-IT/insphire

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A library to use the insphire API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published