Created
July 17, 2017 11:30
-
-
Save ecarreras/d40059004897436fb255840397f30379 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
from flask import Flask, request | |
import time | |
app = Flask(__name__) | |
@app.route('/ARequest', methods=['POST']) | |
def arquest(): | |
print "Writing a post!" | |
with open('post-{}'.format(time.time()), 'w') as f: | |
f.write(request.data) | |
return "Ok", 200 | |
if __name__ == '__main__': | |
app.run() |
MiquelIR
commented
Jul 18, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment