https://github.com/akshatdalton/basicslackapp
A basic Slack app setup with FastAPI
https://github.com/akshatdalton/basicslackapp
fastapi oauth slack slack-bot
Last synced: about 2 months ago
JSON representation
A basic Slack app setup with FastAPI
- Host: GitHub
- URL: https://github.com/akshatdalton/basicslackapp
- Owner: akshatdalton
- License: mit
- Created: 2022-06-30T16:30:50.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-07-06T04:17:54.000Z (almost 4 years ago)
- Last Synced: 2025-01-25T12:43:30.541Z (over 1 year ago)
- Topics: fastapi, oauth, slack, slack-bot
- Language: Python
- Homepage:
- Size: 301 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BasicSlackApp
A basic Slack app setup with FastAPI
# Setup
`pip install -r requirements.txt`
```.bash
# -- OAuth flow -- #
export SLACK_SIGNING_SECRET=***
export SLACK_CLIENT_ID=111.111
export SLACK_CLIENT_SECRET=***
export SLACK_SCOPES=chat:write
```
# Resources:
- https://github.com/slackapi/bolt-python/tree/main/examples/fastapi
- https://www.youtube.com/watch?v=aycTE75-2Gc
- https://api.slack.com/methods/chat.postMessage
- https://slack.dev/bolt-python/concepts#authenticating-oauth
- https://github.com/Idadelveloper/OAuth2-Slack-App/blob/main/app.py
- https://slack.dev/python-slack-sdk/oauth/index.html#app-installation-flow
- https://slack.dev/bolt-python/concepts#authorization
- https://github.com/slackapi/bolt-python/issues/590
- https://github.com/slackapi/bolt-python/issues/492