post data
This commit is contained in:
parent
f6937f8008
commit
f69e47d303
11
app/main.py
11
app/main.py
|
@ -24,9 +24,16 @@ async def intgr(request: Request):
|
||||||
if number == "test":
|
if number == "test":
|
||||||
number = 423
|
number = 423
|
||||||
|
|
||||||
|
bx_data = {
|
||||||
|
"taskId": number,
|
||||||
|
"fields": {
|
||||||
|
"POST_MESSAGE": body['commits'][0]['message']
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
bx_res = requests.get(
|
bx_res = requests.get(
|
||||||
"https://crm.svs-tech.pro/rest/38/7ufrqnfpncmt279p/task.commentitem.add.json?"
|
"https://crm.svs-tech.pro/rest/38/7ufrqnfpncmt279p/task.commentitem.add.json",
|
||||||
f"taskId={number}&fields[POST_MESSAGE]=f'{body['commits'][0]['message']}'"
|
json=bx_data
|
||||||
)
|
)
|
||||||
logger.info(f"result {json.loads(bx_res.text)}")
|
logger.info(f"result {json.loads(bx_res.text)}")
|
||||||
return {"status": "success"}
|
return {"status": "success"}
|
||||||
|
|
Loading…
Reference in New Issue