| Crates.io | seamapi-rs |
| lib.rs | seamapi-rs |
| version | 0.1.1 |
| created_at | 2022-10-04 14:57:42.378152+00 |
| updated_at | 2022-10-07 23:26:52.713524+00 |
| description | A Rust client for Seam |
| homepage | |
| repository | https://github.com/iamwacko/seamapi-rs |
| max_upload_size | |
| id | 679880 |
| size | 52,787 |
Control locks, lights, and other internet of things devices with Seam's simple API. Checkout out the documentation or some examples.
cargo add seamapi-rs
use seamapi_rs::Seam;
fn main() {
let seam = Seam::new(None, None).expect("Failed to get key or URL");
let workspace = seam.workspaces().get().expect("Failed to get");
println!("{:?}", workspace);
}
This project is written in Rust, so use the latest stable from Rustup.
cargo testcargo build --releaseOur tests use a seam sandbox environment given by environment variable SEAM_SANDbOX_API_KEY. If you want to run the tests, you should first create a sandobx workspace on your dashboard.