This repository has been archived on 2025-09-17. You can view files and clone it, but cannot push or open issues or pull requests.
api_firebird/services/api_externa_1.py
2025-06-28 20:09:55 -03:00

8 lines
No EOL
296 B
Python

import httpx
# Exemplo de cliente HTTP para API externa
async def buscar_dados_externos(param: str):
async with httpx.AsyncClient(timeout=10) as client:
response = await client.get(f"https://api.exemplo.com/{param}")
response.raise_for_status()
return response.json()