/flowtime/timer/status
Obter o status do timer
Retorna o status atual do timer: se há um timer rodando e há quanto tempo. Sem timer rodando, "is_tracking" é false e "timer" é null. "timer.source" indica a origem (api, app, app_offline, geofence ou null para a web). No modo "Registro de ponto simples", os campos "timer.entry_type" (work|break) e "timer.state" (working|on_break) mostram se a pessoa está trabalhando ou em pausa.
Bearer pk_… ou at_…
curl -X GET "https://api.flowsuite.one/flowtime/timer/status" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json"
use Illuminate\Support\Facades\Http;
$response = Http::withToken('YOUR_API_TOKEN')
->get('https://api.flowsuite.one/flowtime/timer/status');
$data = $response->json();
const response = await fetch('https://api.flowsuite.one/flowtime/timer/status', {
method: 'GET',
headers: {
'Authorization': 'Bearer YOUR_API_TOKEN',
'Accept': 'application/json',
},
});
const data = await response.json();
import requests
headers = {
'Authorization': 'Bearer YOUR_API_TOKEN',
'Accept': 'application/json',
}
response = requests.get(
'https://api.flowsuite.one/flowtime/timer/status',
headers=headers,
)
data = response.json()
{
"success": true,
"data": {
"is_tracking": true,
"timer": {
"uuid": "6f1e2a3b-...",
"entry_type": "work",
"state": "working",
"description": "Feature-Entwicklung",
"project": {
"uuid": "9d2f4c1a-7b3e-4f8a-9c5d-1e6a8b0c2d4f",
"name": "Website Redesign",
"client_name": "Empresa Exemplo GmbH"
},
"starts_at": "2024-01-15T09:00:00+00:00",
"elapsed_seconds": 3600,
"elapsed_formatted": "01:00:00",
"source": "app"
}
}
}