Skip to content

PgBiel/rust-brawl-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages