/simplepush-rs

Rust client for the simplepush.io API

Primary LanguageRustMIT LicenseMIT

SimplePush: A Rust client for simplepush.io

Build crates.io Documentation Crates.io

A Rust client for the SimplePush API

Adding the client to your project

cargo add simplepush-rs

Sending a simple notification

   let result = SimplePush::send(Message::new(
        "SIMPLE_PUSH_KEY",
        Some("title"),
        "test message",
        None,
        None,
    ));

Sending a simple notification with encryption

   let result = SimplePush::send(Message::new(
        "SIMPLE_PUSH_KEY",
        Some("title"),
        "test message",
        None,
        None,
        "ENCRYPTION_KEY",
        Some("SALT"),
    ));