brawl-api

Crates.iobrawl-api
lib.rsbrawl-api
version0.1.2
sourcesrc
created_at2020-02-05 18:58:07.112136
updated_at2020-02-05 19:17:05.581572
descriptionA Rust implementation of the Brawl Stars API (https://developer.brawlstars.com/).
homepage
repositoryhttps://github.com/PgBiel/rust-brawl-api
max_upload_size
id205277
size223,380
Pg Biel (PgBiel)

documentation

https://docs.rs/brawl-api/*

README

rust-brawl-api

A Rust implementation of the Brawl Stars API (https://developer.brawlstars.com/).

Usage

  1. Use cargo (add as dependency on your Cargo.toml).
  2. Generate an API key in the Brawl Stars developer website.
  3. Code!

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.
}

License

Licensed under the MIT license (see the LICENSE file).

Contribution

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.

Commit count: 25

cargo fmt