| Crates.io | shinemonitor |
| lib.rs | shinemonitor |
| version | 0.1.2 |
| created_at | 2022-08-14 11:00:50.97871+00 |
| updated_at | 2022-08-14 21:34:14.669935+00 |
| description | Rust library for the shinemonitor.com website |
| homepage | |
| repository | https://github.com/fnxln/shinemonitor-rs |
| max_upload_size | |
| id | 645352 |
| size | 13,723 |
Rust libary for the shinemonitor.com website
(username and password required)
use shinemonitor::ShineMonitorClient;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>>{
let client = ShineMonitorClient::default();
let res = client
.auth("johnsmith","temp123")
.await?
.pid()
.await?;
println!("Pid Json: {:?}",res);
Ok(())
}
shinemonitor = "0.1.0"
tokio = { version = "1", features = ["full"] }