| Crates.io | malevolence |
| lib.rs | malevolence |
| version | 0.1.0 |
| created_at | 2023-07-17 18:02:53.935097+00 |
| updated_at | 2023-07-17 18:02:53.935097+00 |
| description | Unofficial Rust bindings for the OpenDota API |
| homepage | |
| repository | https://github.com/fawni/malevolence |
| max_upload_size | |
| id | 918728 |
| size | 22,789 |
Unofficial Rust bindings for the OpenDota API
Malevolence stands for Orchid Malevolence. "Orchid" is squatted by a non-existent crate.
use malevolence::Client;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let client = Client::new(None);
let dota_match = client.get_match(7_242_624_734).await?;
println!("{:?}", dota_match.winner());
Ok(())
}
GET /matches/{match_id}GET /playersByRankGET /players/{account_id}GET /players/{account_id}/wlGET /players/{account_id}/recentMatchesGET /players/{account_id}/matchesGET /players/{account_id}/heroesGET /players/{account_id}/peersGET /players/{account_id}/prosGET /players/{account_id}/totalsGET /players/{account_id}/countsGET /players/{account_id}/histogramsGET /players/{account_id}/wardmapGET /players/{account_id}/wordcloudGET /players/{account_id}/ratingsGET /players/{account_id}/rankingsPOST /players/{account_id}/refreshGET /proPlayersGET /proMatchesGET /publicMatchesGET /parsedMatchesGET /distributionsGET /searchGET /rankingsGET /benchmarksGET /findMatchesGET /heroesGET /heroes/{hero_id}/matchesGET /heroes/{hero_id}/matchupsGET /heroes/{hero_id}/durationsGET /heroes/{hero_id}/playersGET /heroes/{hero_id}/itemPoGET /heroStatsGET /leaguesGET /leagues/{league_id}GET /leagues/{league_id}/matchesGET /leagues/{league_id}/teamsGET /teamsGET /teams/{team_id}GET /teams/{team_id}/matchesGET /teams/{team_id}/playersGET /teams/{team_id}/heroesGET /replaysGET /liveGET /scenarios/itemTimingsGET /scenarios/laneRolesGET /scenarios/misc