Crates.io | pushyapi |
lib.rs | pushyapi |
version | 0.1.3 |
source | src |
created_at | 2023-06-21 08:33:44.012615 |
updated_at | 2023-06-26 10:59:10.893116 |
description | A simple unofficial API wrapper for Pushy |
homepage | |
repository | https://gitlab.com/waynes-crates/pushyapi |
max_upload_size | |
id | 896001 |
size | 3,470 |
unofficial pushy.me (https://pushy.me) wrapper
let pushy_ids: Vec<String> = vec!["id1","id2"];
let mut data: HashMap<String, String> = HashMap::new();
data.insert(String::from("message"), String::from("Message"));
match pushyapi::send_message(pushy_ids, data, None).await {
Ok(response) => {
log::debug(format!("Pushy Response: {:?}", response));
},
Err(error) => {
log::error(format!("Failed to send pushy message: {}", error.to_string()));
}
}