slack_api

Crates.ioslack_api
lib.rsslack_api
version0.23.1
sourcesrc
created_at2016-03-20 18:56:29.666811
updated_at2020-06-29 20:27:50.348842
descriptionInterface for the Slack Web API
homepage
repositoryhttps://github.com/slack-rs/slack-rs-api.git
max_upload_size
id4504
size1,184,609
maintainers (github:slack-rs:maintainers)

documentation

https://docs.rs/slack_api

README

slack-rs-api

Slack Web API interface.

Build Status Crates.io License

Documentation

Usage

Add this to your Cargo.toml:

[dependencies]
slack_api = "0.23.0"

Async

default-features include an async functions and client using reqwest
See async channel history example

Sync

The "sync" feature provides sync functions and the "reqwest_blocking" feature provides a sync client using reqwest
See sync channel history example

Slack docs

Slack's api is large and changes often. Their docs are high quality and no attempt to replicate them is made in this crate's docs. Please refer to their docs as your primary resource of how slack's api works.

Providing own client

You can provide your own client by implementing the async or sync versions of SlackWebRequestSender.
Which should would allow avoiding reqwest and thus tokio.

Something I need is missing

Not every method is available in this crate but if something is missing you would like then please log an issue. Bear in mind this is maintained in contributor's spare time and contributions are welcome.

License

slack-api is distributed under the Apache-2.0 License.

Commit count: 224

cargo fmt