rocket-rust 0.2.0

RocketChat API Implemented in Rust
Documentation
# rocket-rust 

### Rust API wrapper for the [RocketChat API]https://docs.rocket.chat/development-docs

[![crates.io](https://img.shields.io/crates/v/rocket-rust.svg)](https://crates.io/crates/rocket-rust)
[![MIT/Apache-2 licensed](https://img.shields.io/crates/l/reqwest.svg)](./LICENSE-APACHE)

## Example

#### Initialize the client with a username and password.

```rust,no_run
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]https://developer.rocket.chat/reference/api/rest-api/endpoints/core-endpoints/chat-endpoints/postmessage

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


## License

Licensed under either of

- Apache License, Version 2.0 ([LICENSE-APACHE]LICENSE-APACHE or http://apache.org/licenses/LICENSE-2.0)
- MIT license ([LICENSE-MIT]LICENSE-MIT or http://opensource.org/licenses/MIT)

### 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.