finstatclient

1.0.2 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i finstatclient

Weekly Downloads

5

Version

1.0.2

License

MIT

Last publish

Collaborators

  • juffalow