25 releases (7 breaking)

0.8.3 Jun 12, 2021
0.7.3 Mar 13, 2021
0.4.0 Dec 27, 2020
0.3.1 Nov 8, 2020

#111 in Web programming

Download history 16/week @ 2021-02-25 30/week @ 2021-03-04 109/week @ 2021-03-11 19/week @ 2021-03-18 89/week @ 2021-03-25 23/week @ 2021-04-01 31/week @ 2021-04-08 78/week @ 2021-04-15 8/week @ 2021-04-22 26/week @ 2021-04-29 2/week @ 2021-05-06 25/week @ 2021-05-13 4/week @ 2021-05-20 34/week @ 2021-05-27 43/week @ 2021-06-03 104/week @ 2021-06-10

153 downloads per month
Used in 3 crates

Apache-2.0

58KB
1.5K 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

~1.9–2.8MB
~57K SLoC