Files

56 lines
1.3 KiB
Python

<<<<<<< HEAD
import requests
url = "https://itsm.sino-assist.com/zentao/zt-story-expand/saveOrUpdate"
headers = {
"Content-Type": "application/json"
}
payload = {
"storyId": 8318,
"numberUnits": 20,
"unitBusinessComplexity": "3.2",
"technicalComplexityCoefficient": "1.60",
"aiEfficiencyCoefficient": "0.65",
"requirementStatus": "finished",
"workloadIndex": "66.6"
}
resp = requests.post(url, json=payload, headers=headers)
print(resp.status_code)
for enc in ['utf-8', 'gbk', 'gb2312', 'gb18030']:
try:
print(enc, ':', resp.content.decode(enc))
break
except:
pass
=======
import requests
url = "https://itsm.sino-assist.com/zentao/zt-story-expand/saveOrUpdate"
headers = {
"Content-Type": "application/json"
}
payload = {
"storyId": 8318,
"numberUnits": 20,
"unitBusinessComplexity": "3.2",
"technicalComplexityCoefficient": "1.60",
"aiEfficiencyCoefficient": "0.65",
"requirementStatus": "finished",
"workloadIndex": "66.6"
}
resp = requests.post(url, json=payload, headers=headers)
print(resp.status_code)
for enc in ['utf-8', 'gbk', 'gb2312', 'gb18030']:
try:
print(enc, ':', resp.content.decode(enc))
break
except:
pass
>>>>>>> e1d85c48c09f4096267ecbe268b303094f2c2606