#notifications

simplepush-rs

Client for the simplepush.io API

1 unstable release

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

#379 in HTTP client

Download history 268/week @ 2024-08-04 6/week @ 2024-08-11 39/week @ 2024-09-15 11/week @ 2024-09-22 68/week @ 2024-09-29 2/week @ 2024-10-06

120 downloads per month

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

~7–18MB
~247K SLoC