def put_json(location, json_data):
"""
Performs a PUT and passes the data to the URL location
"""
result = requests.put(
location,
data=json_data,
auth=(USERNAME, PASSWORD),
verify=True,
headers=POST_HEADERS)
return result.json()
评论列表
文章目录