Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 720 Bytes

README.md

File metadata and controls

32 lines (25 loc) · 720 Bytes

dota2api

Java wrapper for dota2 web api

Impletemented APIs

  • getMatchHistory()
  • getMatchDetails()
  • getLeagueListing()
  • getLiveLeagueGames()
  • getTeamInfoByTeamId()
  • getPlayerSummaries()
  • getHeros()
  • getItems()
  • getTournamentPrizePool()

Usage

fun main(args: Array<String>) {
    val dota2Client = Dota2Client("YOUR_SECRET_KEY")
    // Print all heroes
    dota2Client.heroes().forEach { println("${it.name} : ${it.images.large}") }
    // Print all items
    dota2Client.items().forEach { println(it.name) }
}

API Details

Inspired dota2api