Work Hours API
Overview
View work hours data
API URL
api/workhours/query
HTTP Method
GET
URL Parameters
Name |
Type |
Required |
Description |
checktime |
String |
Requires |
Start time |
checktime2 |
String |
Requires |
End time |
itemsPerPage |
String |
Requires |
Number of data obtained per page |
pageNumber |
String |
Requires |
Which page of data need to get |
access_token or user_access_token |
String |
Requires |
Specify the API access_token of the account or the user_access_token obtained after the user logged in. |
Response
Returns a JSON object. If "code" is "0", it is successful. "data" is the statistical data of all work hours.
Examples
{
"code": 0,
"msg": "操作成功",
"msg_en": "Successful operation",
"data": {
"data": [
{
"tag": "f1c0", //Tag Serial Number
"date": "2024-06-24", //Date of Statistics
"ins": "{\"1\":10360,\"20\":47}", //In the E-fence Time
"notins": 1986, //Not in E-fence Time (seconds)
"unknowns": 2007, //Unknown Time (seconds)
"alls": 14400, //All Statistical Time (seconds)
"per_serialnumber": null, //Tag Member Number
"per_name": null //Tag Member Name
}
],
"fences": [
{
"id": 1, //E-fence Number
"belongszone": 1, //The number of the area where the E-fence is located
"name": "研发部" //The name of E-fence
},
{
"id": 20,
"belongszone": 1,
"name": "work"
}
],
"itemsPerPage": "10", //Number of data obtained per page
"totalItems": 1 //Number of Items
}
}