Python (requests)
Upload de CSV de horas
import requests
BASE = "https://suite.sisqualis.com.br"
headers = {"Authorization": f"Token {TOKEN}"}
with open("horas.csv", "rb") as f:
resp = requests.post(
f"{BASE}/api/upload-csv-horas/",
headers=headers,
files={"file": ("horas.csv", f, "text/csv")},
)
print(resp.json())
Registrar ponto
resp = requests.post(
f"{BASE}/api/timeclock/punch/register/",
headers=headers,
json={"event_type": "entrada"},
)
print(resp.json())
cURL
Criar cliente
curl -X POST https://suite.sisqualis.com.br/api/clientes/ \
-H "Authorization: Token $TOKEN" \
-H "Content-Type: application/json" \
-d '{"nome": "Empresa X", "email": "contato@empresax.com"}'
Dashboard financeiro
curl https://suite.sisqualis.com.br/api/finance/dashboard/ \
-H "Authorization: Token $TOKEN"