Module for making requests to the Brocade API
npm install node-brocade --save
<script src="https://unpkg.com/[email protected]/dist/main.min.js"></script>
const brocade = require('node-brocade');
brocade.item('4335896051932').then(data => {
console.log(JSON.stringify(data));
}).catch(error => {
console.log(error.message);
});
brocade.item('4335896051932').then(data => {
console.log(JSON.stringify(data));
}).catch(error => {
console.log(error.message);
});
brocade.list().then(data => {
console.log(JSON.stringify(data));
}).catch(error => {
console.log(error.message);
});
brocade.page('20').then(data => {
console.log(JSON.stringify(data));
}).catch(error => {
console.log(error.message);
});
brocade.query('peanut butter').then(data => {
console.log(JSON.stringify(data));
}).catch(error => {
console.log(error.message);
});