Page History

Heartbeat

Last edited by 翁力

返回

APP心跳通知接口


心跳说明


APP每间隔10s调用此接口同步心跳,30s未同步则服务端视为APP掉线。

URL: http://uc.cnlive.com/heartBeat/hb.action?spId=xxx&token=xxx


请求方式: HTTP POST


返回格式: JSON


版本:互动电视5.3.2开始


请求参数说明:

参数名 参数类型 必选 参数说明
spId String true 服务提供商
token String true 参数加密串
----sid String true SSO ID
----uuid String true 设备ID(xxx_xxx)
----version String true 客户端版本
----event String true ugclive(代表直播上传)
----contentId String true 内容ID(ugclive时为activeId)
----status int true 心跳状态:0(代表首次),1(代表工作中),2(代表结束)
----plat String true 客户端平台

返回格式说明:

{
    "errorCode": "0",
    "errorMessage": "success"
}
{
    "errorCode": "-1",
    "errorMessage": "用户已在异地登陆"     //客户端应注销当前登录用户
}