Zum Inhalt springen
Alle Integrationen

curl

So läuft es:Jede Anfrage auf der Kommandozeile ausprobieren, bevor sie in einen Taster oder eine Automation wandert.

Mit curl probierst du jede Anfrage auf der Kommandozeile aus, bevor du sie in einen Taster oder eine Automation einträgst. Alle Antworten sind JSON; die Felder beschreibt die API-Doku.

Token einmal in die Umgebung legen:

Beispiel (bash)
export HORAKA_TOKEN='DEIN_TOKEN'

Timer starten, mit Idempotency-Key gegen doppelte Starts:

Beispiel (bash)
curl -X POST https://api.horaka.com/v1/track/start \
  -H "Authorization: Bearer $HORAKA_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"project": "PROJEKT", "activity": "TAETIGKEIT"}'

Umschalten, wechseln und stoppen:

Beispiel (bash)
curl -X POST https://api.horaka.com/v1/track/toggle -H "Authorization: Bearer $HORAKA_TOKEN" -H "Content-Type: application/json" -d '{"project": "PROJEKT"}'
curl -X POST https://api.horaka.com/v1/track/switch -H "Authorization: Bearer $HORAKA_TOKEN" -H "Content-Type: application/json" -d '{"project": "PROJEKT"}'
curl -X POST https://api.horaka.com/v1/track/stop -H "Authorization: Bearer $HORAKA_TOKEN"

Stand als Satz und als JSON:

Beispiel (bash)
curl "https://api.horaka.com/v1/track/status?format=text" -H "Authorization: Bearer $HORAKA_TOKEN"
curl https://api.horaka.com/v1/timer -H "Authorization: Bearer $HORAKA_TOKEN"
HORAKA: Zeiterfassung für Selbstständige und kleine Teams

Hol dir die verschenkten Stunden zurück.

Das Konto ist in einer Minute angelegt. Du testest 14 Tage Premium, ohne Zahlungsdaten anzugeben, und machst danach mit Free weiter oder ab 4,90 € im Monat mit allem fürs Abrechnen.