Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Mar 25, 2021. It is now read-only.

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Slack Buttons

A Flask app to document and test Slack's interactive messages.

Slack Buttons Tutorial

Check out our Source article explaining how we use Slack buttons in our newsroom and how you can make your own.

Getting Started

Create a virtualenv to store the codebase.

$ virtualenv slack_buttons

Activate the virtualenv.

$ cd slack_buttons
$ . bin/activate

Clone the git repository from GitHub.

$ git clone https://github.com/datadesk/slack-buttons-example.git repo

Enter the repo and install its dependencies.

$ cd repo
$ pip install -r requirements.txt

Fill in your Slack app's credentials in the app file.

Now run the test server and check out the results on localhost:5000

$ python app.py

Testing Slack Buttons

This Flask app has three routes:

  • '/': index is just to test to make sure the server is running
  • '/test-add-story': test URL will post a test story in your Slack channel
  • '/slack': webhook accepts POST requests from your Slack app after a button has been clicked

About

A Flask app to document and test Slack's interactive messages.

Topics

Resources

Stars

10 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages