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

上报测温设备中的测温记录,每次可批量上报100条记录。

 

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

{
	"temperature_data":[
		{
			"open_userid": "zhangsan",
			"user_type":2,
			"temperature":"36.7",
			"timestamp":12345,
			"status":0
		}
	]
}

参数说明:

参数名是否必须类型描述
device_access_tokenstringdevice_access_token ,获取方式见获取设备调用凭证
temperature_dataarray(data)温度数据,最多批量上报100条
temperature_data.open_useridstring用户open_userid
temperature_data.user_typeuint32用户类型:0-企业成员;2-学生
temperature_data.temperaturestring用户温度
temperature_data.timestampuint32温度测量时间戳
temperature_data.statusuint32状态,0:正常, 1:发热, 2:温度过低

返回结果:

{
	"errcode": 0,
	"errmsg": "ok",
	"fail_list": [
		{
			"open_userid": "zhangsan",
			"user_type":2,
			"timestamp":12345,
			"errcode":123,
			"errmsg":"xxxx"
		}
	]
}

参数说明:

参数名描述
errcode错误码
errmsg错误码描述
fail_list上报失败列表
上一篇
上报考勤打卡记录
下一篇
上报门禁通行记录