dota2_webapi_bindings
Dota 2 webapi bindings for rust
You can find the official(outdated) documentation here
I am currently using xpaw to get a list of APIs
How to Use :
In Cargo.toml
:
[]
= "*"
In main.rs
:
//main.rs
use Dota2Api;
static DOTA2_KEY: &str = "0123456789"; //example token
The webapi terms are same as official except they are all in lowercase, Eg : GetGameItems
is now get_game_items()
.
Available calls :
- IEconDOTA2_570
- GetGameItems
- GetHeroes
- GetRarities
- GetTournamentPrizePool
- IDOTA2Match_205790
- GetLeagueListing
- IDOTA2Match_570
- GetLiveLeagueGames
- GetTopLiveGame
See documentation for more.
Note: Try using language()
with everything, just put in any string, it seems like its gives better readable name
and description for some reason
License
Licensed under
- MIT license (LICENSE.md or http://opensource.org/licenses/MIT)