rocket-rust

Rust API wrapper for the RocketChat API

crates.io MIT/Apache-2 licensed

Example

Initialize the client with a username and password.

```rust,norun use rocketrust::{RocketChatAPI, Settings};

let client = RocketChatAPI::new( Settings { username: String::from("chuck_norris"), password: String::from("supersecret"), domain: String::from("https://mydomain.com"), }, ); ```

Available API methods

Post Message

rust,no_run let result = client.send_message("Some message with star emoji :star:", "#channel");

License

Licensed under either of

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.