0.1.4 • Published 6 years ago

opendota-api v0.1.4

Weekly downloads
2
License
ISC
Repository
-
Last release
6 years ago

USAGE

const Dota = require('opendota-api');
let dota = new Dota();

Available functions

listHeroes()

Return all dota 2 heroes with identifier.

// With Async/await functions

async function list() {
 let heroes = await dota.listHeroes();
 console.log(heroes);
 // doStuff
}

// Without Async/await functions

dota.listHeroes()
  .then(function(response) {
      console.log(response);
      //  Dostuff
  })
  .catch(function(err) {
      console.log(err);
  });

AVAILABLE FUNCTIONS

listHeroes();

listItems();

getMatchById(match_id, options);

options -> setnames : boolean account_id: string

setnames = assign name heroes in results instead identifiers

Docs updating soon

Feel free to send your issues here

https://github.com/Root-Control/OpenDota-Api

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago