1.0.0 • Published 6 years ago

prosperworks v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

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