Send Slack API Events notifications to Slack using python-slack-events-api.
- Create a Slack app on https://api.slack.com/apps
- Set Permissions, Incoming Webhooks and Event Subscriptions.
- Subscribe API event types (e.g.
user_change
) you want to track. - Request URL should be 'https://xxx.herokuapp.com/slack/events'.
- Subscribe API event types (e.g.
- Deploy your Heroku app. e.g.) run the following command:
$ heroku create
$ heroku git:remote -a <Heroku app's name>
$ git push heroku master
or
- Define
SLACK_SIGNING_SECRET
andWEBHOOK_URL
as Heroku Config Vars.
For more information, see these documents: