New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

stuller

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stuller

Interact with the Stuller API. Converts from XML to json

  • 0.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

Stuller API

Install

npm install stuller

Available Methods

  • Most methods can take either an Array, String, or Number
  • Calling send(callback) actually fires off the request to Stuller
  • The callback function is given two arguments (err, response)
    • error any error thrown by Equella, soap, or xml2js
    • response array of JSON objects

FetchItemInfo

var Stuller = require('stuller');

var stuller = new Stuller({
                apiUrl: APIURL,
                token: TOKEN
              });

stuller
  .FetchItemInfo(['123:A', '123:B'])
  .send(function(err, response) {
    console.log(response);
});

FetchItemInfoByItemID

var Stuller = require('stuller');

var stuller = new Stuller({
                apiUrl: APIURL,
                token: TOKEN
              });

stuller.FetchItemInfoByItemID(123).send(function(err, response) {
    console.log(response);
    });

FetchItemInfoBySeries

var Stuller = require('stuller');

var stuller = new Stuller({
                apiUrl: APIURL,
                token: TOKEN
              });

stuller.FetchItemInfoBySeries(['2222', '234233']).send(function(err, response) {
    console.log(response);
    });

FetchItemPriceOnHand

var Stuller = require('stuller');

var stuller = new Stuller({
                apiUrl: APIURL,
                token: TOKEN
              });

stuller.FetchItemPriceOnHand(['123:A', '123:B']).send(function(err, response) {
    console.log(response);
    });

FetchItemPriceOnHandByItemID

var Stuller = require('stuller');

var stuller = new Stuller({
                apiUrl: APIURL,
                token: TOKEN
              });

stuller.FetchItemPriceOnHandByItemID([123, 123]).send(function(err, response) {
    console.log(response);
    });

FetchItemPriceOnHandBySeries

var Stuller = require('stuller');

var stuller = new Stuller({
                apiUrl: APIURL,
                token: TOKEN
              });

stuller.FetchItemPriceOnHandBySeries([123, 123]).send(function(err, response) {
    console.log(response);
    });

FetchItems

var Stuller = require('stuller');

var stuller = new Stuller({
                apiUrl: APIURL,
                token: TOKEN
              });

stuller.FetchItems().send(function(err, response) {
    console.log(response);
    });

FetchRTWItems

var Stuller = require('stuller');

var stuller = new Stuller({
                apiUrl: APIURL,
                token: TOKEN
              });

stuller.FetchRTWItems(1).send(function(err, response) {
    console.log(response);
    });

FAQs

Package last updated on 05 Jan 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc