#slack #client

slack-morphism

Slack Morphism is a modern client library for Slack Web/Events API and Block Kit

28 releases (7 breaking)

0.8.3 Jun 12, 2021
0.7.3 Mar 13, 2021
0.4.0 Dec 27, 2020
0.3.1 Oct 20, 2020

#212 in Web programming

Download history 15/week @ 2021-02-25 33/week @ 2021-03-04 107/week @ 2021-03-11 19/week @ 2021-03-18 102/week @ 2021-03-25 26/week @ 2021-04-01 34/week @ 2021-04-08 118/week @ 2021-04-15 6/week @ 2021-04-22 29/week @ 2021-04-29 2/week @ 2021-05-06 28/week @ 2021-05-13 4/week @ 2021-05-20 35/week @ 2021-05-27 42/week @ 2021-06-03 104/week @ 2021-06-10

175 downloads per month
Used in 2 crates

Apache-2.0

145KB
4K SLoC

Cargo tests and formatting

Slack Morphism for Rust

Slack Morphism is a modern client library for Slack Web/Events API and Block Kit.

Documentation

Please follow to the official website: https://slack-rust.abdolence.dev

Examples

https://github.com/abdolence/slack-morphism-rust/tree/master/src/examples/src

The example bot requires to work the following environment variables (from your Slack bot profile in api.slack.com):

  • SLACK_CLIENT_ID, SLACK_CLIENT_SECRET, SLACK_BOT_SCOPE, SLACK_REDIRECT_HOST - for OAuth
  • SLACK_SIGNING_SECRET for all routes

Routes for this example are available on http://:8080:

  • /auth/install - to begin OAuth installation
  • /auth/callback - a callback endpoint for Slack OAuth profile config
  • /push - for Slack Push Events
  • /interaction - for Slack Interaction Events
  • /command - for Slack Command Events

Licence

Apache Software License (ASL)

Author

Abdulla Abdurakhmanov

Dependencies

~12MB
~316K SLoC