文档中心 > API类目 > 阿里影业云智API

taobao.lark.pos.heartbeat (云智-pos-心跳)

pos心跳接口 服务端和pos间相互感知对方状态

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
lease_code String 可选 HENGDA 租户标识
cinema_link_id String 可选 12345 影院id
retry_times String 可选 -1 重试次数, 正常心跳入参为-1, 重试时为重试的次数
current_gateway String 可选 top 当前pos使用的网管, top/mcop
version String 可选 1.1 pos版本号
ua String 可选 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.84 Safari/537.36 pos ua信息

响应参数

名称 类型 示例值 描述
data Json {"data":{"forceGateway":"top"},"success":true,"resultCode":"SUCCESS","resultMsg":"成功"} forceGateway:当前强制网关,配置信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
LarkPosHeartbeatRequest req = new LarkPosHeartbeatRequest();
req.setLeaseCode("HENGDA");
req.setCinemaLinkId("12345");
req.setRetryTimes("-1");
req.setCurrentGateway("top");
req.setVersion("1.1");
req.setUa("Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.84 Safari/537.36");
LarkPosHeartbeatResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<lark_pos_heartbeat_response>
    <data>{&quot;data&quot;:{&quot;forceGateway&quot;:&quot;top&quot;},&quot;success&quot;:true,&quot;resultCode&quot;:&quot;SUCCESS&quot;,&quot;resultMsg&quot;:&quot;成功&quot;}</data>
</lark_pos_heartbeat_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部