dota2_api 0.2.3

Rust client for the official Dota 2 web API
Documentation
1
2
3
4
5
6
7
8
9
10
11
extern crate dota2_api;

use dota2_api::Dota2Api;

fn main() {
    let mut dota = Dota2Api::new("your key here");
    let data = dota.get_top_live_games().expect("Couldn't get match history");
    for m in data {
        println!("Lobby ID: {}\tScores: Radiant {}:{} Dire", m.lobby_id, m.radiant_score, m.dire_score);
    }
}