智慧硬件开发 硬件云端接入 考勤/门禁设备 接口调用 上报门禁通行记录
上报门禁通行记录
最后更新:2022/08/15
可联系渠道经理采购或代理智慧硬件接口已支持设备 联系渠道经理
上报门禁通行记录
最后更新:2022/08/15

上报用户通过门禁事件。

 

请求方式:POST(HTTPS
请求地址: https://qyapi.weixin.qq.com/cgi-bin/openhw/device/report_access_data?device_access_token=DEVICE_ACCESS_TOKEN
请求包体:

{
	"access_data": [
		{
			"open_userid": "x1",
			"user_type":0,
			"timestamp": 12345,
			"pass_type":1,
			"pass_method":1
		},
		{
			"open_userid": "x2",
			"user_type":0,
			"timestamp": 12345,
			"pass_type":1,
			"pass_method":1
		}
	]
}

参数说明:

参数名是否必须类型描述
device_access_tokenstringdevice_access_token ,获取方式见获取设备调用凭证
access_dataarray(data)门禁数据,最多批量上报100条数据
access_data.open_useridstring通过门禁的用户open_userid
access_data.user_typeuint32用户类型:0-企业成员;2-学生
access_data.timestampuint32通过门禁的时间戳
access_data.pass_typeuint32通行类型:1-进门;2-出门;3-无法识别方向
access_data.pass_methoduint32通行方法:1-人脸;2-二维码;3-远程开门;4-指纹

返回结果:

{
	"errcode": 0,
	"errmsg": "ok",
	"fail_list": [
		{
			"open_userid":"x2",
			"user_type":0,
			"timestamp":12345
		}
	]
}

参数说明:

参数名描述
errcode错误码
errmsg错误码描述
fail_list上报失败列表
上一篇
上报体温检测记录
下一篇
上报成员识别信息变化结果