Zum Inhalt springen
Hauptnavigation
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"

Hol dir die verschenkten Stunden zurück.

Leg in einer Minute los. 14 Tage Premium gratis und ohne Karte, danach kostenlos weiter mit Free oder ab 4,90 € im Monat mit allem fürs Abrechnen.