rocketchat
Rust API wrapper for the RocketChat API
Example
The library uses asynchronous HTTP client reqwest, so your Cargo.toml could look like this:
= "0.4.0"
= { = "1", = ["full"] }
When calling methods, you need to pass settings that can be created as follows:
Using username and password
use ;
let settings = Login;
Using auth token and user ID
use ;
let settings = Auth;
Available API methods
Post Message
let result = PostMessageMethod .call.await;
License
MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)