Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/slorunner/node-ico-watchlist-api
Nodejs wrapper for icowatchlist.com
https://github.com/slorunner/node-ico-watchlist-api
Last synced: about 1 month ago
JSON representation
Nodejs wrapper for icowatchlist.com
- Host: GitHub
- URL: https://github.com/slorunner/node-ico-watchlist-api
- Owner: SloRunner
- License: mit
- Created: 2018-05-06T15:26:45.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-03-03T08:59:21.000Z (almost 2 years ago)
- Last Synced: 2024-04-27T13:11:47.641Z (8 months ago)
- Language: JavaScript
- Size: 56.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# node-ico-watchlist-api
Nodejs wrapper for icowatchlist.com[![Build Status](https://travis-ci.org/SloRunner/node-ico-watchlist-api.svg?branch=master)](https://travis-ci.org/SloRunner/node-ico-watchlist-api)
[![NPM](https://nodei.co/npm/node-ico-watchlist-api.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/node-ico-watchlist-api/)
## API Implementation
Check examples folder for more info
```javascript
const icowatchlistAPI = require('node-ico-watchlist-api'); // use node-ico-watchlist-api in production
const ico = new icowatchlistAPI()
ico.getFinished(function(resp,data){
if(resp){
console.log(JSON.stringify(data))
} else {
console.log('\nError');
}
})```
All callbacks have the same structure
```javascript
/*
* @return {Boolean} response: result of the call.
* @return {String} json: data returned from icowatchlist.com API in JSON format, if the response is false json is an empty string
*/
callback(response,json);
```Callbacks:
```javascript
icoapi.getAll()
icoapi.getLive()
icoapi.getUpcoming()
icoapi.getFinished()
```