finstatclient
v1.0.2
Published
Node.js client for FinStat API
Downloads
10
Readme
Node.js FinStat client
Installation
With npm :
npm install finstatclient
With yarn :
yarn add finstatclient
Example
var finstatclient = require('finstatclient')('<api key>', '<private key>');
finstatclient.getCompanyDetail("35757442", function(data) {
console.log(data);
}, function(statusCode) {
switch(statusCode) {
case 28:
// timeout
break;
case 402:
// exceeding the daily limit
break;
case 403:
// unauthorized ( bad API key / private key, ... )
break;
case 404:
// ICO not found in database
break;
}
});