import httpx from app.config import settings async def send_deviz_sms( telefon: str, token_client: str, tenant_name: str, base_url: str ): if not settings.SMSAPI_TOKEN: return # skip in dev/test url = f"{base_url}/p/{token_client}" msg = f"{tenant_name}: Devizul tau e gata. Vizualizeaza: {url}" async with httpx.AsyncClient() as c: await c.post( "https://api.smsapi.ro/sms.do", headers={"Authorization": f"Bearer {settings.SMSAPI_TOKEN}"}, data={"to": telefon, "message": msg, "from": "ROAAUTO"}, )