1.5.5 • Published 6 years ago

mika v1.5.5

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

NPM

mika Build Status

an unofficial javascript wrapper for the opendota api.

getting started

  1. install mika from npm: npm install mika or from git: npm install bippum/mika#master
  2. read the docs for mika and opendota
  3. feel free to msg me on discord (alexa#4444) with any questions, find me in the opendota development server (discord.gg/opendota), and create an issue here with any bug reports

examples

const Mika = require("mika");
var mika = new Mika();

mika.getPlayer("<your account id>").then((player) => {
    console.log(`Solo MMR: ${player.solo_competitive_rank}`);
    console.log(`Account ID: ${player.profile.account_id}`);
    console.log(`Name: ${player.profile.personaname}`);
}).catch((err) => console.log(err));

mika.getPlayerCounts("<your account id>").then((counts) => {
    let leavers = 0
    for (leaver_stat in counts.leaver_status) {
        if (leaver_stat != "0") {
            leavers += counts.leaver_status[leaver_stat].games;
        }
    }
    console.log(`\nGames with at least one leaver: ${leavers}`)
}).catch((err) => console.log(err));
1.5.5

6 years ago

1.5.4

6 years ago

1.5.3

6 years ago

1.5.2

6 years ago

1.5.1

6 years ago

1.5.0

6 years ago

1.4.2

6 years ago

1.4.1

6 years ago

1.4.0

6 years ago

1.3.0

6 years ago

1.2.2

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago