@apigrate/xero
v1.4.4
Published
NodeJS connector library for the Xero API.
Downloads
25
Readme
apigrate-xero
NodeJS API wrapper for Xero. This connector is for use with private Xero apps only.
Usage
npm install @apigrate-xero
To use the Xero connector, you will need to configure it with your generated Xero consumer key and Xero private key.
var xero = new Xero(
{
consumerKey: $xeroConsumerKey,
privateKey: $xeroPrivateKey,
measureTiming: true
},
LOGGER
);
xero.getContacts()
.then(function(result){
console.log("Result: "+ JSON.stringify(result));
})
.fail(function(err){
console.error(err);
});