rzap
This library provides an interface to controll shocker devices via OpenShock's API
NOTE: This is an un-official API iterface created by someone who has just started learning rust, no guarantees are made and contributions are greatly welcomed
[dependencies]
reqwest = { version = "0.11.27" }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
strum_macros = "0.26.4"
strum = "0.26.2"
tokio = { version = "1.21.2", features = ["macros", "rt-multi-thread"] }
Example
A simple request to retrieve the API key user's id
dotenv.ok;
let openshock_token = var.expect;
let app_name = env!;
let app_version = env!;
assert_ne!;
openshock_api = new
.with_app
.with_default_api_token
.build
.unwrap;
println!;