我将尝试通过在clockify的工作区中使用指定用户的开始日期和结束日期来获取时间条目
我正在尝试使用以下 API 端点来获取用户:
如何使用此端点获取指定用户的时间条目?
<script>
$.ajax({
url:'https://api.clockify.me/api/workspaces/5ce55d0df15c986c490dbd31/user/5cecc6b
9d278ae5b59628763/time-entries',
method: 'GET',
contentType: "application/json",
headers: {
'X-Api-Key': 'XRyd+5AH7VhhP+I8'
},
data: JSON.stringify({
start: "2019-07-16T13:00:37Z",
end: "2019-07-16T14:01:41Z"
}),
success: function(data, textStatus, request){
obj = JSON.parse(JSON.stringify(request))
//obj = JSON.parse(request);
//console.log(request);
console.log(obj.responseJSON);
document.getElementById("demo").innerHTML = txt;
},
error: function (request, textStatus, errorThrown) {
console.log("Error");
},
always: function(r) {
console.log(r);
alert(r);
}
});
</script>
{
"timestamp": "2019-07-18T05:42:25.577+0000",
"status": 404,
"error": "Not Found",`enter code here`
"message": "No message availabl",
"path": "/workspaces/5ce55d0df15c986c490dbd31/user/5cecc6b9d278ae5b59628763/time-entries"
}