Slack Web API interface.
Add this to your Cargo.toml
:
[dependencies]
slack_api = "0.23.0"
default-features
include an async functions and client using reqwest
See async channel history example
The "sync"
feature provides sync functions and the "reqwest_blocking"
feature provides a sync client using reqwest
See sync channel history example
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.
You can provide your own client by implementing the async or sync versions of SlackWebRequestSender
.
Which should would allow avoiding reqwest
and thus tokio
.
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.
slack-api
is distributed under the Apache-2.0 License.