@apigrate/xero

NodeJS connector library for the Xero API.

Usage no npm install needed!

<script type="module">
  import apigrateXero from 'https://cdn.skypack.dev/@apigrate/xero';
</script>

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);
});