0.0.5 • Published 11 years ago
exigo v0.0.5
node-exigo
what is node-exigo?
node-exigo is an easy-to-use Exigo API client (http://api.exigo.com/3.0/)
install
npm install exigo --saveusage
var ExigoClient = require('exigo').ExigoClient;
var exigo = new ExigoClient({
username: 'myloginname',
password: 'mypassword',
company: 'mycompany'
});
var parameters = {
'SomeExigoMethodOption': 'somevalue'
};
exigo.call('GetItems', parameters, function(error, items) {
if(error) throw new Error(error);
items.forEach(function(item) {
console.log(item);
});
});Note: if you encounter some error like Error: Could not locate the bindings file. Tried:, and a long stacktrace, this is not a node-exigo error, it comes from the libxmljs library that comes with node-foam, some information about that issue is in:
A workaround to this issue is:
- in the node_modules directory, navigate to the
libxmljsmodule - edit the file
binding.gypand delete the lines where theproduct_extensionandtypeoptions are - rebuild the module with
node-gyp rebuild