Crates.io | rocketchat_client_rs |
lib.rs | rocketchat_client_rs |
version | 0.2.2 |
source | src |
created_at | 2019-05-18 21:58:14.329335 |
updated_at | 2019-08-20 20:31:09.007391 |
description | Send messages to rocketchat via cli or using library |
homepage | https://github.com/ansrivas/rocketchat-client-rs |
repository | https://github.com/ansrivas/rocketchat-client-rs |
max_upload_size | |
id | 135155 |
size | 101,554 |
Send notifications/messages to RocketChat from command-line or from inside your code.
cargo install rocketchat_client_rs
To run the tests:
make test
As a command line tool:
$ rocketchat-client --channel "#test-logs" --webhook "https://blah.at.blah-blah-blah.com" --text "hi"
As a library:
use rocketchat_client_rs::RocketClient;
fn main() {
let _response = RocketClient::new("https://blah.at.blah-blah-blah.com")
.with_channel("#test-logs")
.with_text("Hi world")
.with_default_hostname()
.execute();
}
$ cargo doc --no-deps
MIT
The Azure pipeline template has been taken from https://github.com/graphql-rust/juniper here.