Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import time
import simplejson
from pprint import pprint
from flask import Flask, jsonify, request
app = Flask(__name__)
@app.route("/", methods=["POST"])
def index():
data = simplejson.loads(request.form['data'])
print data
return jsonify(integrationUrl="http://test.com/%s/" % data['id'])
if __name__ == '__main__':
app.run(debug=True, host="0.0.0.0", port=8001)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment