NodeJS connector library for the Xero API.
npm install @apigrate/xeronpm 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);
});
``