Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/renanbastos93/steamlytics-es6
Creating module to consult api http://steamlytics.xyz/api
https://github.com/renanbastos93/steamlytics-es6
Last synced: 18 days ago
JSON representation
Creating module to consult api http://steamlytics.xyz/api
- Host: GitHub
- URL: https://github.com/renanbastos93/steamlytics-es6
- Owner: renanbastos93
- License: mit
- Created: 2017-03-05T19:36:31.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-03-12T22:59:43.000Z (over 7 years ago)
- Last Synced: 2024-10-06T16:41:10.866Z (about 1 month ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# steamlytics-es6
Creating module to consult api http://csgo.steamlytics.xyz/api###Version: 1.0.2
##Install
```bash
$ npm install steamlytics-es6 --save
```##Using
```js
const steamlytics = require('steamlytics-es6');
//Default version v1, because to get key you going login in steamlytics
var api = new steamlytics(version, key)
.getItems()
.then((data) => {
if(data.success){
console.log(data);
}
})
.catch((err) => console.log("Errorrr", err))
;
```###Methods
```js
1. new steamlytics()
* getItems().then(callback).catch(callback)
* getPrices(nameItem).then(callback).catch(callback)
* getPopular().then(callback).catch(callback)
//version 2
* getPriceList().then(callback).catch(callback)
* getPriceListCompact().then(callback).catch(callback)
```###Note
Using module request.
Using Promise native.###Node --version 6.10.0
#We are still testing