Package Exports
- susu-dota2-api
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (susu-dota2-api) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
dota2-web-api
Install
npm install susu-dota2-apiBefore the example, you should apply a steam key to use these APIs.
Example
const DotaTwoWebApi = require('susu-dota2-api');
const dota2Api = DotaTwoWebApi.create('steam key');
const options = {match_id : '123456789'}; // id is an example which is not true
dota2Api.getMatchDetails(options).then(res=>console.log(res));the functions
- getMatchDetails({match_id:'123456789'})
- getPlayerSummaries({account_id:'123456789'})
todo next
- getMatchHistory API
todo in future
other APIs of dota2 or steam