A modern async client library for Rust, supports Slack Web / Events API/Socket Mode and Block Kit.
Find a file
Abdulla Abdurakhmanov 5da21abdfd Readme ver update
2022-02-25 18:36:38 +01:00
.github/workflows Changed github flow to prevent double tests running 2021-12-11 15:10:08 +01:00
docs Readme ver update 2022-02-25 18:36:38 +01:00
src URL strong type in models and API (#99) 2022-02-25 18:34:36 +01:00
.gitignore vim dir to gitignore 2020-10-17 15:12:59 +02:00
Cargo.toml Docs and examples updates 2021-10-30 21:42:31 +02:00
CNAME gh-pages workflow fix 2020-08-22 18:40:30 +03:00
LICENSE Docs/Cargo update 2020-08-09 16:12:47 +03:00
README.md Docs, block kit small updates 2021-10-31 10:43:16 +01:00
renovate.json Add renovate.json 2020-08-22 15:57:31 +00:00

Cargo tests and formatting

Slack Morphism for Rust

Slack Morphism is a modern client library for Slack Web/Events API/Socket Mode 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/hyper/examples

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

  • SLACK_TEST_TOKEN - for Slack client example
  • SLACK_TEST_APP_TOKEN - for Slack client with Socket Mode example
  • SLACK_CLIENT_ID, SLACK_CLIENT_SECRET, SLACK_BOT_SCOPE, SLACK_REDIRECT_HOST - for OAuth routes for Events API example
  • SLACK_SIGNING_SECRET for all routes for Events API example

To run example use with environment variables:

# SLACK_... cargo run --example <client|events_api_server|socket_mode>

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