Static Statistics API

Overview

View Static Statistics data

 

API URL

api/workhours/static

 

HTTP Method

GET

 

URL Parameters

Name

Type

Required

Description

checktime

String

Requires

Start 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 static statistics data.

Examples

{

  "code": 0,

  "msg": "操作成功",

  "msg_en": "Successful operation",

  "data": {

    "data": [

      {

        "tag": "1ae0", //Tag Serial Number

        "date": "2024-06-26", //Date of Statistics

        "statics": 885, //No Displacement Time (seconds)

        "alls": 1025, //On-duty Time (seconds)

        "per_serialnumber": null, //Tag Member Number

        "per_name": null //Tag Member Name

      },

      {

        "tag": "b579",

        "date": "2024-06-26",

        "statics": 23114,

        "alls": 23174,

        "per_serialnumber": null,

        "per_name": null

      },

      {

        "tag": "f1c0",

        "date": "2024-06-26",

        "statics": 18102,

        "alls": 23147,

        "per_serialnumber": null,

        "per_name": null

      }

    ],

    "itemsPerPage": "10", //Number of data obtained per page

    "totalItems": 3 //Number of Items

  }

}