[关闭]
@rzzx 2016-12-07T01:15:16.000000Z 字数 1283 阅读 631

掌上听云客户端NetWork API接口-警报->推送

NetWork

文档中主机名需要参考以下配置:

内网:http://192.168.5.197:8082/rpc
外网:未定



1. 注册CID

URL

/device.do

示例URL

http://192.168.5.197:8082/rpc/device.do?formAction=device&authkey=JraUZFype4&deviceId=0008B3BD-66B0-48BF-824C-071C2E626500&clientId=3fa1e4e8b36e2323750c522c1190497f

请求参数

参数 必选 类型 说明
authkey true string 由authkey接口获取
formAction true string 设置固定值为device
device true string 设备ID
clientId true string CID
locate false String 地区

响应数据

  1. /*成功响应*/
  2. {
  3. "status":200
  4. }
  5. /*错误响应*/
  6. 没有数据
  7. /*错误响应*/
  8. {"status":503}
  9. /*错误响应*/
  10. {"status":-2} //authkey失效
  11. /*错误响应*/
  12. {"status":500,"message":"system error."}

2. CID清除

URL

/device.do

示例URL

http://192.168.5.197:8082/rpc/device.do?formAction=device&authkey=JraUZFype4&deviceId=0008B3BD-66B0-48BF-824C-071C2E626500

备注:此删除操作为不可恢复操作

请求参数

参数 必选 类型 说明
authkey true string 由authkey接口获取
formAction true string 设置固定值为deviceDelete
deviceId true string 设备ID
locate false String 地区

响应数据

  1. /*成功响应*/
  2. {
  3. "status":200
  4. }
  5. /*错误响应*/
  6. 没有数据
  7. /*错误响应*/
  8. {"status":503}
  9. /*错误响应*/
  10. {"status":-2} //authkey失效
  11. /*错误响应*/
  12. {"status":500,"message":"system error."}

3. 透传返回的数据

响应数据

  1. /*成功响应*/
  2. {
  3. "alarm_id":11281,
  4. "itemseq":1,
  5. "status":1,
  6. "groupName":"nihao",
  7. "taskName":"nihao",
  8. "message":"nihao",
  9. "targetType":41,
  10. "time":11432345435
  11. }
  12. /*错误响应*/
  13. 没有数据
  14. /*错误响应*/
  15. {"status":503}
  16. /*错误响应*/
  17. {"status":-2} //authkey失效
  18. /*错误响应*/
  19. {"status":500,"message":"system error."}
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注