node-dota2
Version:
Steam Dota2 Api in Node.js
56 lines (37 loc) • 931 B
Markdown
node-dota2
---
[![NPM version][npm-image]][npm-url]
[![David deps][david-image]][david-url]
[npm-image]: https://img.shields.io/npm/v/node-dota2.svg?style=flat
[npm-url]: https://npmjs.org/package/node-dota2
[david-image]: https://img.shields.io/david/SFantasy/node-dota2.svg?style=flat
[david-url]: https://david-dm.org/SFantasy/node-dota2
[](https://nodei.co/npm/node-dota2/)
Steam Dota2 Api in Node.js
## Install
```sh
npm install SFantasy/node-dota2
```
## Usage
### Require and new
```js
var Dota2 = require('node-dota2');
var dota2 = new Dota2('your api key');
```
### Api
- getMatchHistory
```js
dota2.getMatchHistory('player_id', options);
```
- getMatchDetails
```js
dota2.getMatchDetails('match_id', options);
```
## Develop
```sh
git clone git@github.com:SFantasy/node-dota2.git
cd node-dota2
npm install
```
## License
The MIT License