Belvo Js
Developers portal | Documentation
Installation
Install the package using npm
$ npm install belvo --save
Usage
var belvo = require("belvo").default;
var client = new belvo(
'YOUR-KEY-ID',
'YOUR-SECRET',
'https://sandbox.belvo.co'
);
client.connect()
.then(function () {
client.links.list()
.then(function (res) {
console.log(res);
})
.catch(function (error) {
console.log(error);
});
});
Or if you prefer to use ES6 and async/await
import Client from 'belvo';
const client = new Client(
'YOUR-KEY-ID',
'YOUR-SECRET',
'https://sandbox.belvo.co'
);
async function getLinks() {
try {
const links = await client.links.list();
console.log(links);
} catch (error) {
console.log(error);
}
}
Development
After checking out the repo, run npm install
to install dependencies. Then, run npm test
to run the tests.
To release a new version, use npm version
to bump a new version, and when all is ready you can upload the new version using npm publish
.
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/belvo-finance/belvo-js. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.
Code of Conduct
Everyone interacting in the Belvo project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.