use rqpush::Notification;
fn main() {
let mut notification = Notification::init("Example", "An example", "This is an example notification.");
notification.set_short_text_template("[{{app}}]: {{notification}} ({{integer}})".to_string());
notification.add_value("integer".to_string(), 3.to_string());
match notification.send("http://localhost:8000", 55, 0, None) {
Ok(r) => println!("Success: {:?}", r),
Err(e) => println!("Failure: {:?}", e),
}
}