Crates.io | rustoa |
lib.rs | rustoa |
version | 0.1.8 |
source | src |
created_at | 2020-07-18 19:26:33.776704 |
updated_at | 2020-08-03 21:36:30.55633 |
description | Rust bindings to The Orange Alliance API |
homepage | |
repository | https://github.com/karx1/rustoa |
max_upload_size | |
id | 266655 |
size | 35,751 |
Rust bindings to The Orange Alliance API
A Crate to access The Orange Alliance API. This crate makes it easy to access the official First Tech Challenge API and use it in your Rust projects.
Install by adding
[dependecies]
rustoa = "0.1.8"
to your Cargo.toml
file.
To use the development version, add
[dependencies]
rustoa = { git = "https://github.com/karx1/rustoa" }
to your Cargo.toml file. This version might be unstable.
Here's a simple example:
use rustoa::{Client, Season};
let client = Client::new("api_key");
let team = client.team(16405);
println!("{}", team.season_wins(Season::SkyStone));