rocket-rust 0.2.0

RocketChat API Implemented in Rust
Documentation
rocket-rust-0.2.0 has been yanked.

rocket-rust

Rust API wrapper for the RocketChat API

crates.io MIT/Apache-2 licensed

Example

Initialize the client with a username and password.

use rocket_rust::{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
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.