Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/juffalow/nodefinstatclient
Node.js client for FinStat API
https://github.com/juffalow/nodefinstatclient
Last synced: 18 days ago
JSON representation
Node.js client for FinStat API
- Host: GitHub
- URL: https://github.com/juffalow/nodefinstatclient
- Owner: juffalow
- Created: 2017-02-07T17:42:50.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-08-01T11:40:09.000Z (over 7 years ago)
- Last Synced: 2024-10-06T06:02:33.501Z (about 1 month ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Node.js FinStat client
[![npm version](https://img.shields.io/npm/v/finstatclient.svg?style=flat)](https://www.npmjs.com/package/finstatclient) [![npm downloads](https://img.shields.io/npm/dm/finstatclient.svg?style=flat)](https://www.npmjs.com/package/finstatclient)
## Installation
With [npm](https://www.npmjs.com/) :
```
npm install finstatclient
```With [yarn](https://yarnpkg.com/) :
```
yarn add finstatclient
```## Example
```
var finstatclient = require('finstatclient')('', '');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;
}
});
```