1 unstable release

0.1.0 May 22, 2023

#62 in #synchronous

22 downloads per month

MIT license

29KB
687 lines

Gotify-rs

A Rust library to use Gotify's API from Rust. This library is a port of the great python-gotify package.

A WIP!


lib.rs:

Gotify-rs is a library which wraps the Gotify API. There are two interfaces which can be used:

  • SyncGotify which is a synchronous wrapper of the Gotify API.
  • AsyncGotify which is an asynchronous wrapper of the Gotify API.

An example of using the synchronous interface to create an application:

let gotify = SyncGetify::new("https://my.gotify.server/", "a_client_token", None);
let app = gotify.create_application("App name".to_string(), "App description".to_string()).expect("Failed to create application");
gotify.gotify.config(None, &app.token, None);
let message = gotify.create_message("Hello world!".to_string(), Some(0), "Test message".to_string()).expect("Failed to create message");

Dependencies

~4–18MB
~261K SLoC