Answer the question
In order to leave comments, you need to log in
How to receive outgoing webhooks from Bitrix24 using python FastAPI?
Hello everyone, I'm trying to fiddle with FastAPI
. At the moment, it turns out to accept webhooks from B24, passing only if parameters were passed in them, for example, this deletes the deal
@app.post('/kill-deal')
def send_data(deal_to_kill: int):
kill_deal(deal_to_kill)
return {deal_to_kill: '<- сделка удалена'}
class Item(BaseModel):
event: str
data: dict
auth: str
@app.post("/task_update/", response_model=Item)
def print_task(item: Item):
print(item)
return item
INFO: мой ip - "POST /task_update/ HTTP/1.1" 422 Unprocessable Entity
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question