Hey everyone!
I need to make a script(using Python) that will generate a general report on tasks, and on the total time spent on each of the tasks grouped by date.
I have tried everything but anyway I get a 404 error, so I decided to ask the community
Do my payload and endpoint look correct?
:
def get_tasks_info_and_group_by_date(workspaceId):
data = {'x-api-key': '<MY API KEY :)>'}
payload = {
dateRangeStart: "2022-06-17T00:00:00.000",
dateRangeEnd: "2022-06-19T00:00:00.000",
summaryFilter: {
groups: [
"DATE",
"TASK",
"TIMEENTRY"
],}
}
result_data = requests.post(f'https://api.clockify.me/api/v1/workspaces/{workspaceId}/reports/summary', headers=data,json=payload)
Thanks in advance
P.S.
Request with same payload in postman also doesn’t work