[PYTHON] Your URL didn't respond with the value of the challenge parameter.

When using the slack API, I got an error saying that the flask endpoint cannot be used. This means that ok will not be issued unless it is an api that returns a challenge parameter. So, if you make an api that returns the challenge parameter given in the post as it is, it's ok!

@app.route("/slack/sample", methods=["POST"])
def slack_sample():
    return request.json["challenge"]

Recommended Posts

Your URL didn't respond with the value of the challenge parameter.
Challenge the Tower of Hanoi with recursion + stack
Take the value of SwitchBot thermo-hygrometer with Raspberry Pi
Log the value of SwitchBot thermo-hygrometer with Raspberry Pi
Record of the first machine learning challenge with Keras
Run the intellisense of your own python library with VScode.
The true value of Terraform automation starting with Oracle Cloud
Find the optimal value of a function with a genetic algorithm (Part 2)
Get the URL of a JIRA ticket created with the jira-python library
Solve the initial value problem of ordinary differential equations with JModelica
Tips: [Python] Calculate the average value of the specified area with bedgraph
Periodically log the value of Omron environment sensor with Raspberry Pi
Find the definition of the value of errno
Extract the maximum value with pandas.
About the return value of pthread_mutex_init ()
About the return value of the histogram.
Logging the value of Omron environment sensor with Raspberry Pi (USB type)
Get the return value of an external shell script (ls) with python3
Align the size of the colorbar with matplotlib
Check the existence of the file with python
Find the SHA256 value with R (with bonus)
Create your own Composite Value with SQLAlchemy
I didn't know the basics of Python
The third night of the loop with for
Get the value of the middle layer of NN
The second night of the loop with for
Get lots of your tweets with Tweepy
Count the number of characters with echo
Make the default value of the argument immutable
To output a value even in the middle of a cell with Jupyter Notebook
Compare the sum of each element in two lists with the specified value in Python