POST api/CheckTicket/HikVision/HeartbeatEvent
接受海康闸机心跳的程序入口。
Request Information
URI Parameters
None.
Body Parameters
HKGateHeartParm| Name | Description | Type | Additional information |
|---|---|---|---|
| TicketEvent |
心跳数据事件内容。 |
HKGateHeartEvent |
None. |
| ipAddress |
可选 Ipv4 |
string |
None. |
| ipv6Address |
可选 Ipv6 |
string |
None. |
| portNo |
可选 设备通信端口 |
integer |
None. |
| protocolType |
可选 传输通信协议 HTTP |
string |
None. |
| macAddress |
可选 设备MAC地址 |
string |
None. |
| doorDirection |
Int 可选 1进门,2出门 |
integer |
None. |
| dateTime |
ios8601 必选 事件触发时间(必须带时区)2017-04-22T15:39:01+08:00 |
date |
None. |
| eventType |
必选 事件类型人证票事件:TicketEvent |
string |
None. |
| eventDescription |
必选 事件英文描述 |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"TicketEvent": {
"deviceSn": "sample string 1"
},
"ipAddress": "sample string 1",
"ipv6Address": "sample string 2",
"portNo": 3,
"protocolType": "sample string 4",
"macAddress": "sample string 5",
"doorDirection": 6,
"dateTime": "2025-10-29T12:16:58.8711307+08:00",
"eventType": "sample string 8",
"eventDescription": "sample string 9"
}
application/xml, text/xml
Sample:
<HKGateHeartParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Parm.CheckTicket.HKVISON">
<dateTime>2025-10-29T12:16:58.8711307+08:00</dateTime>
<doorDirection>6</doorDirection>
<eventDescription>sample string 9</eventDescription>
<eventType>sample string 8</eventType>
<ipAddress>sample string 1</ipAddress>
<ipv6Address>sample string 2</ipv6Address>
<macAddress>sample string 5</macAddress>
<portNo>3</portNo>
<protocolType>sample string 4</protocolType>
<TicketEvent>
<deviceSn>sample string 1</deviceSn>
</TicketEvent>
</HKGateHeartParm>
application/x-www-form-urlencoded
Sample:
Sample not available.
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.
Response Information
Resource Description
接受海康闸机心跳的程序入口。
HKGateHeartResult| Name | Description | Type | Additional information |
|---|---|---|---|
| Result |
integer 必选 服务器处理结果,0-成功,-1-失败 |
integer |
None. |
| ADPicture |
String 可选 广告图片,base64格式,600*1024,大小不超过3M |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Result": 1,
"ADPicture": "sample string 2"
}
application/xml, text/xml
Sample:
<HKGateHeartResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Result.CheckTicket.HKVISON"> <ADPicture>sample string 2</ADPicture> <Result>1</Result> </HKGateHeartResult>
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.