Created
July 17, 2014 13:18
-
-
Save fernandotakai/069d3ab7d61e130fba43 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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