pushyapi

Crates.iopushyapi
lib.rspushyapi
version0.1.3
sourcesrc
created_at2023-06-21 08:33:44.012615
updated_at2023-06-26 10:59:10.893116
descriptionA simple unofficial API wrapper for Pushy
homepage
repositoryhttps://gitlab.com/waynes-crates/pushyapi
max_upload_size
id896001
size3,470
Wayne Oliver (Wayn0)

documentation

README

PushyAPI

unofficial pushy.me (https://pushy.me) wrapper

Usage

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()));
    }
}

Commit count: 0

cargo fmt