Solutions
worksection
beta
help
Getting the authorized user active timer through API: get_my_timer
Sample get_my_timer request
?action=get_my_timer
Returns authorized user (oauth2) active timer
method available only for access token
Returned data:
- time — timer value (at the moment of sending the request)
- date_started — timer start date and time
- task — dataset on a project and task, where the timer is running (see get_task method for details on returned parameters meaning)
Sample JSON response
If the request succeeds, the response will contain ok status and the following data:
{"status": "ok", "data": [ { "time": TIMER_VALUE, "date_started": "YYYY—MM—DD HH:II", "task": { "id": "TASK_ID", "name": "TASK_NAME", "page": "/project/PROJECT_ID/TASK_ID/", "status": "active", "priority": "1", "user_from": { "id": "USER_ID", "email": "USER_EMAIL", "name": "USER_NAME" }, "user_to": { "id": "USER_ID", "email": "USER_EMAIL", "name": "USER_NAME" }, "project": { "id": "PROJECT_ID", "name": "PROJECT_NAME", "page": "/project/PROJECT_ID/" }, "date_added": "YYYY—MM—DD HH:II" } } ] }
Leave your review
Did this article help you?
Glad we could help! What was helpful?
Sorry this didn't help. What went wrong?