I am in the process of building an integration between Clockify and Zoho CRM. Where I have clients and projects and staff defined in Zoho.
All the clients and projects are synchronised fine from Zoho to Clockify. But now I have reached a snag with the method of fetching time entries for all users in a given period. Time registered in Clockify needs to be transferred to Zoho, so we can bill the client and register the hours for the staff for the salary run, all done in Zoho CRM.
At first I looked at the /workspaces/{workspaceid}/timeEntries/ But that does not provide a range period, Also the limits parameter described in the api documentation, does not change the number of items returned from the default 10 items.
Then I looked at both /workspaces/{workspaceid}/timeEntries/{userid} /workspaces/{workspaceid}/timeEntries/{userid}/entriesInRange One provides a range, but both only gives access to the user with the apikey, even though that’s the owner of the workspace.
How do I get a list of all timeEntries all the users has registered in the workspace for a given period. The information should include project and task if defined on the record. Perhaps I have overlooked something in the api document.
Br Michael
Summary Report API would be suitable for your use case. See /workspaces/{workspaceId}/reports/summary/
It will give you time entries in requested range, and you can toggle between your and your team's entries with request parameter 'me'.