Skip to content

Instantly share code, notes, and snippets.

@dalanmiller
Last active December 10, 2015 21:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dalanmiller/4498422 to your computer and use it in GitHub Desktop.
Save dalanmiller/4498422 to your computer and use it in GitHub Desktop.
Simple flask app for printing HTTP data
from flask import Flask
app = Flask(__name__)
app.debug = True
@app.route("/")
def hello():
return "Hello World!"
@app.route('/test')
def test_webhook():
print
print 'REQUEST DATA', request.data
print
print 'REQUEST ARGS', request.args
return 'success'
if __name__ == "__main__":
app.run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment