vella-backend / _utils /bubble_integrations /enviar_resposta_final.py
luanpoppe
feat: adicionando teste unitário dos contextuals
2213315
raw
history blame
510 Bytes
import requests
import os
def enviar_resposta_final(doc_id: str, form_response_id: str, version: str, texto_completo: str, error: bool = False):
url = f"https://vella.app.br/version-{version}/api/1.1/wf/texto_completo"
headers = {"Authorization": f"Bearer {os.environ.get("BUBBLE_TOKEN")}"}
body = {
"doc_id": doc_id,
"form_response_id": form_response_id,
"texto_completo": texto_completo,
"erro": error,
}
return requests.post(url, body, headers=headers)