Skip to content

Instantly share code, notes, and snippets.

@fernandotakai
Created July 17, 2014 13:18
Show Gist options
  • Save fernandotakai/069d3ab7d61e130fba43 to your computer and use it in GitHub Desktop.
Save fernandotakai/069d3ab7d61e130fba43 to your computer and use it in GitHub Desktop.
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