prosperworks
v1.0.0
Published
ProsperWorks client in Node.js
Downloads
2
Maintainers
Readme
ProsperWorks Node.js client
This ProsperWorks library provides convenient access to ProsperWorks API from Node.js
Installation
npm install prosperworks --save
Usage
// configuring client
const prosperworks = require('prosperworks')({
email: process.env.EMAIL,
token: process.env.TOKEN
});
// using async / await (native in Node.js v8.x)
/*
(async function() {
var result = await prosperworks.companies.list();
console.log(JSON.stringify(result, null, 2));
})();
*/
// or using with promises
prosperworks.companies.list()
.then(result => {
console.log(JSON.stringify(result, null, 2));
})