malevolence

Crates.iomalevolence
lib.rsmalevolence
version0.1.0
sourcesrc
created_at2023-07-17 18:02:53.935097
updated_at2023-07-17 18:02:53.935097
descriptionUnofficial Rust bindings for the OpenDota API
homepage
repositoryhttps://github.com/fawni/malevolence
max_upload_size
id918728
size22,789
fawn (fawni)

documentation

README

Malevolence 🥀

Unofficial Rust bindings for the OpenDota API

Malevolence stands for Orchid Malevolence. "Orchid" is squatted by a non-existent crate.

Example

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(())
}

Roadmap

Roadmap
  • Matches
    • GET /matches/{match_id}
  • Players By Rank
    • GET /playersByRank
  • Players
    • GET /players/{account_id}
    • GET /players/{account_id}/wl
    • GET /players/{account_id}/recentMatches
    • GET /players/{account_id}/matches
    • GET /players/{account_id}/heroes
    • GET /players/{account_id}/peers
    • GET /players/{account_id}/pros
    • GET /players/{account_id}/totals
    • GET /players/{account_id}/counts
    • GET /players/{account_id}/histograms
    • GET /players/{account_id}/wardmap
    • GET /players/{account_id}/wordcloud
    • GET /players/{account_id}/ratings
    • GET /players/{account_id}/rankings
    • POST /players/{account_id}/refresh
  • Pro players
    • GET /proPlayers
  • Pro matches
    • GET /proMatches
  • Public matches
    • GET /publicMatches
  • Parsed matches
    • GET /parsedMatches
  • Distributions
    • GET /distributions
  • Search
    • GET /search
  • Rankings
    • GET /rankings
  • Benchmarks
    • GET /benchmarks
  • Find Matches
    • GET /findMatches
  • Heroes
    • GET /heroes
    • GET /heroes/{hero_id}/matches
    • GET /heroes/{hero_id}/matchups
    • GET /heroes/{hero_id}/durations
    • GET /heroes/{hero_id}/players
    • GET /heroes/{hero_id}/itemPo
  • Hero stats
    • GET /heroStats
  • Leagues
    • GET /leagues
    • GET /leagues/{league_id}
    • GET /leagues/{league_id}/matches
    • GET /leagues/{league_id}/teams
  • Teams
    • GET /teams
    • GET /teams/{team_id}
    • GET /teams/{team_id}/matches
    • GET /teams/{team_id}/players
    • GET /teams/{team_id}/heroes
  • Replays
    • GET /replays
  • Live
    • GET /live
  • Scenarios
    • GET /scenarios/itemTimings
    • GET /scenarios/laneRoles
    • GET /scenarios/misc

License

OSL-3.0

Commit count: 3

cargo fmt