#slack #client

slack-morphism

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

13 releases

new 0.3.1 Oct 20, 2020
0.3.0 Oct 17, 2020
0.2.8 Sep 3, 2020
0.2.6 Aug 25, 2020
0.1.1 Aug 15, 2020

#312 in Web programming

Download history 12/week @ 2020-08-06 80/week @ 2020-08-13 36/week @ 2020-08-20 24/week @ 2020-08-27 69/week @ 2020-09-03 1/week @ 2020-09-17 17/week @ 2020-09-24 13/week @ 2020-10-01 4/week @ 2020-10-08 52/week @ 2020-10-15

98 downloads per month
Used in slack-paste

Apache-2.0

170KB
4.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

~17MB
~408K SLoC