Typescript/Node.JS API wrapper for Snipe-IT
yarn install snipe-it.js
Make sure to replace SNIPE_URL
and API_TOKEN
in this example
const { Snipe } = require('snipe-it.js');
const snipe = new Snipe(SNIPE_URL, API_TOKEN);
async function func() {
const data = await snipe.hardware.get({
limit: 50
});
console.log(data);
}
func();
Documentation is located here