| Crates.io | unifi-rs |
| lib.rs | unifi-rs |
| version | 0.2.1 |
| created_at | 2025-01-18 08:15:55.479932+00 |
| updated_at | 2025-01-20 08:07:14.09781+00 |
| description | Rust client for the UniFi Network API |
| homepage | |
| repository | https://github.com/callumteesdale/unifi-rs |
| max_upload_size | |
| id | 1521447 |
| size | 82,614 |
A Rust client library for the UniFi Network API that enables programmatic monitoring and management of UniFi deployments.
Add this to your Cargo.toml:
[dependencies]
unifi-rs = "0.1.13"
use unifi_rs::{UnifiClient, UnifiClientBuilder};
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let client = UnifiClientBuilder::new("https://192.168.1.1/proxy/network/integrations")
.api_key("your-api-key")
.verify_ssl(false)
.build()?;
let sites = client.list_sites(None, None).await?;
println!("Sites: {:#?}", sites);
Ok(())
}