Fluent Dota 2 WebAPI client.
npm install dota2-ward
var util = require('util');
var config = require('../config.json');
var dota2ward = require('../');
var client = dota2ward(config.apikey);
var filter = {
human_players: 10,
first_blood_time: { $gt: 0, $lt: 5*60 },
players: { $any: { leaver_status: { $gt: 0}} }
};
client.getMatchHistoryBySequenceNum(filter).forEach(function(match) {
console.log(util.inspect(match, {depth: null}));
});
Creates and retuns a new dota2ward.
Set a decorator function to control the invocation of DOTA2 WebAPI. You can use method-invoker to build the desired decorator.
Returns a promise of MatchDetails for the requested matchId.
Returns a lazy list of MatchSummary for matches that meet the filter.
Returns a lazy list of MatchDetails for matches that meet the filter.