gotify 0.4.0

Idiomatic client for the Gotify API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
#[tokio::main]
async fn main() -> eyre::Result<()> {
    let client: gotify::AppClient = gotify::Client::new(
        &*std::env::var("GOTIFY_URL")?,
        std::env::var("GOTIFY_APP_TOKEN")?,
    )?;

    client
        .create_message("Lorem ipsum dolor sit amet")
        .with_title("Lorem Ipsum")
        .await?;
    Ok(())
}