hotslogs
A Node module for HOTS (Heroes of the Storm) Logs.
Installation
$ npm install hotslogs
How to use
var hl = ; hl; hl;
Documentation
getID(battletag, region, callback);
Arguments:
- battletag (string)
- region (string): shortcut e.g. 'EU', 'US', 'KR', 'CN'
- callback (function): with integer argument
The above function allows you to acquire an unique ID on HOTS Logsfrom which you could generate such link: (http://www.hotslogs.com/Player/Profile?PlayerID=5358817)
getData(id, callback);
Arguments:
- id (integer): can be acquired with getID(...)
- callback (function): with object argument
The above function allows you to acquire such kind of object:
id: 5358817 name: "machina" rankings: quickMatch: MMR: 2087 rank: 13222 heroLeague: MMR: 1688 rank: 11992 teamLeague: MMR: null // because player never played Team League rank: null
Remark
It is unofficial API support for (http://www.hotslogs.com).
License
MIT