一、背景
近期在和音视频组联调,需要获取某云api,获取url的参数进行解析
二、步骤
1.get请求
@coupons_app.route('/query', methods=['GET'])
def query(username):
data = request.args
2.post、delete、put请求
@coupons_app.route('/bulk_create', methods=['POST'])
def bulk_create(username):
params = request.get_json()