#command-line-tool #send-message #client #webhook #text #channel #rocketchat

bin+lib rocketchat_client_rs

Send messages to rocketchat via cli or using library

5 releases

0.2.2 Aug 20, 2019
0.2.1 Jul 24, 2019
0.2.0 May 19, 2019
0.1.1 May 18, 2019
0.1.0 May 18, 2019

#38 in #send-message

MIT license

20KB
152 lines

rocketchat-client-rs

Build Status Version info Docs.rs

Send notifications/messages to RocketChat from command-line or from inside your code.

Installation

Using cargo

cargo install rocketchat_client_rs

Test

To run the tests:

make test

Usage

Examples

  • 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();
    }
    

Documentation

$ cargo doc --no-deps

License

MIT

Credits

The Azure pipeline template has been taken from https://github.com/graphql-rust/juniper here.

Dependencies

~29MB
~617K SLoC