A Rust implementation of the Brawl Stars API (https://developer.brawlstars.com/).
- Use
cargo
(add as dependency on yourCargo.toml
). - Generate an API key in the Brawl Stars developer website.
- 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.
}
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.