上报门禁通行记录
POST
https://qyapi.weixin.qq.com/cgi-bin/openhw/device/report_access_data
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://qyapi.weixin.qq.com/cgi-bin/openhw/device/report_access_data' \
--header 'Content-Type: application/json' \
--data-raw '{
"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
}
]
}'
响应示例响应示例
{
"errcode": 0,
"errmsg": "ok",
"fail_list": [
{
"open_userid": "x2",
"user_type": 0,
"timestamp": 12345
}
]
}
请求参数
Query 参数
device_access_token
string
可选
示例值:
DEVICE_ACCESS_TOKEN
Body 参数application/json
返回响应
修改于 2022-12-08 07:20:51