Guest User

Untitled

a guest
Apr 21st, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. import requests
  2. import json
  3. from flask import Flask
  4. from flask import request
  5.  
  6. app = Flask(__name__)
  7.  
  8.  
  9. @app.route('/', methods = ['POST', 'GET'])
  10. def index():
  11. if request.method == 'POST':
  12. r = request.get_json()
  13. print(r)
  14.  
  15. return '<h1>hello world</h1>'
  16.  
  17. if __name__ == '__main__':
  18. app.run()
Add Comment
Please, Sign In to add comment