Crates.io | brawl-api |
lib.rs | brawl-api |
version | 0.1.2 |
source | src |
created_at | 2020-02-05 18:58:07.112136 |
updated_at | 2020-02-05 19:17:05.581572 |
description | A Rust implementation of the Brawl Stars API (https://developer.brawlstars.com/). |
homepage | |
repository | https://github.com/PgBiel/rust-brawl-api |
max_upload_size | |
id | 205277 |
size | 223,380 |
A Rust implementation of the Brawl Stars API (https://developer.brawlstars.com/).
cargo
(add as dependency on your Cargo.toml
).For example:
use brawl_api::prelude::*;
fn main() -> Result<(), Box<dyn ::std::error::Error>> {
let client = Client::new("MYAUTHTOKEN");
let player = Player::fetch(&client, "#PLAYER_TAG_TO_FETCH")?;
// now data for player with the given tag is available.
// See all models in the documentation.
}
Licensed under the MIT license (see the LICENSE file).
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you shall be licensed as MIT, without any additional terms or conditions.