在 Clockify API 中过滤摘要报告以仅显示计费时间
Filter summary report in Clockify API to show only billable hours
我正在尝试使用 API 仅检索计费小时数。
如果 "billable" 设置为 "BOTH" 以外的任何值,API 会响应错误。
我正在使用以下端点:
https://api.clockify.me/api/workspaces/[workspace id]/reports/summary/
这是我的请求正文:
{
"archived": "Active",
"billable": "true",
"clientIds": [],
"description": "",
"endDate": "2019-05-31T23:59:59.999Z",
"firstTime": "true",
"includeTimeEntries": "true",
"me": "true",
"name": "",
"projectIds": [],
"startDate": "2019-01-01T00:00:00.000Z",
"tagIds": [],
"taskIds": [],
"userGroupIds": [],
"userIds": [],
"zoomLevel": "week"
}
如果我将 "billable" 设置为 "true"(或 "false" 就此而言......),我收到的错误消息是:
{
"message": "No enum constant com.clockify.domain.model.Billable.true",
"code": 501
}
从 official docs 开始,属性 "billable" 的可用值是:
"BOTH", "BILLABLE", "NOT_BILLABLE"
我正在尝试使用 API 仅检索计费小时数。
如果 "billable" 设置为 "BOTH" 以外的任何值,API 会响应错误。
我正在使用以下端点:
https://api.clockify.me/api/workspaces/[workspace id]/reports/summary/
这是我的请求正文:
{
"archived": "Active",
"billable": "true",
"clientIds": [],
"description": "",
"endDate": "2019-05-31T23:59:59.999Z",
"firstTime": "true",
"includeTimeEntries": "true",
"me": "true",
"name": "",
"projectIds": [],
"startDate": "2019-01-01T00:00:00.000Z",
"tagIds": [],
"taskIds": [],
"userGroupIds": [],
"userIds": [],
"zoomLevel": "week"
}
如果我将 "billable" 设置为 "true"(或 "false" 就此而言......),我收到的错误消息是:
{
"message": "No enum constant com.clockify.domain.model.Billable.true",
"code": 501
}
从 official docs 开始,属性 "billable" 的可用值是:
"BOTH", "BILLABLE", "NOT_BILLABLE"