15 releases (breaking)

0.23.1 Jun 29, 2020
0.22.0 Jan 5, 2020
0.21.0 Oct 2, 2018
0.20.0 Jun 18, 2018
0.14.0 Mar 24, 2016

#745 in Web programming

Download history 462/week @ 2023-12-12 342/week @ 2023-12-19 213/week @ 2023-12-26 253/week @ 2024-01-02 157/week @ 2024-01-09 257/week @ 2024-01-16 197/week @ 2024-01-23 257/week @ 2024-01-30 244/week @ 2024-02-06 165/week @ 2024-02-13 189/week @ 2024-02-20 265/week @ 2024-02-27 196/week @ 2024-03-05 318/week @ 2024-03-12 285/week @ 2024-03-19 291/week @ 2024-03-26

1,130 downloads per month
Used in 10 crates (5 directly)

Apache-2.0

1MB
18K SLoC

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.

Dependencies

~0.6–5.5MB
~114K SLoC