1 unstable release

0.1.2 Aug 4, 2024
0.1.1 Aug 4, 2024
0.1.0 Aug 4, 2024

#378 in HTTP client

MIT license

13KB
214 lines

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"),
    ));

Dependencies

~8–19MB
~239K SLoC