Attendance export
POST: /api/attendance/export
Request parameters: application/json
Parameter names
|
Type
|
Remarks
|
userCode
|
String
|
Search and enter the user ID content
|
startTime
|
String
|
Starting time
|
endTime
|
String
|
End Time
|
exportType
|
String
|
0=raw data, 1=attendance report
|
Header
Parameter names
|
Type
|
Remarks
|
pageNum
|
int
|
Pagination page number, default is 1
|
pageSize
|
Int
|
How many entries per page, default 30
|
|
|
|
Back to:Will return a file directly.
File name:list1.xls = Original data, file name:list2.xls=Attendance report
7.5 Query about device information
GET:/api/aboutDevice/loadInfo
Request parameters:
Parameter names
|
Type
|
Remarks
|
/
|
/
|
/
|
Back to:
{
"msg": "操作成功",
"code": 0,
"data": {
"appVersionName": "release 1.0.7_20210318",
"devicesSn": "YGKJ20204202773",
"ethernetMac": "8C:E8:C6:0B:8D:22",
"faceSdkVersion": "V3.8.2",
"romVersionName": "Android 7.1.2",
"usbMode": "USB Device",
"wifiMac": "C0:84:7D:31:85:62"
},
"success": true
}
8. Developer configuration
Developer configuration is the function that the device actively pushes the access records to third-party developers. Developers are requested to implement the Http interface service according to the following interface format.
8.1 Turn on push and configure URL
Push URL currently only supports full URL paths beginning with http or https, please end with "/"
Example:http://app.yecon-tech/api/test/
Please make sure that the URL is accessible (you can click the test button to test whether the interface can be accessed), the device request interface TimeOut is 30S, and each push is up to 10 records.
8.2 Request parameter
HTTP POST application/x-www-form-urlencoded (code UTF-8)
Parameter names
|
Type
|
Remarks
|
data
|
String
|
Json message (array), please refer to 8.4
|
token
|
String
|
Parameter signature MD5, please ignore Uppercase lowercase, see 8.3 for details
|
timeMillis
|
Long
|
TimeMillis of the current device
|
action
|
String
|
Only when testing, will pass action=test&data=[]
|
JSON Message field description (note the Uppercase lowercase)
createTime Create time
devSn device ID
userName Username (Stranger: "Guest")
userCode User ID (empty for strangers)
devUserId User ID (empty for strangers)
faceImageBase64 Common image base64 encoding
id Local record increment Id
passType Access type (0=swipe face, 1=swipe card, 2=swipe QR code)
temp Body temperature during passby (Celsius, if the temperature measurement function is turned off, the field may be empty)
Do'stlaringiz bilan baham: |