获取api日志列表(tsp.apilogs.get)
服务地址
GET https://openapi.xu5g.com/tsp/apilogs/get
业务描述
根据时间,事件ID等参数查询api日志列表
请求参数
除公共参数外,还包括以下业务参数:
返回参数
请求实例
Plain Text
curl
-X GET
-G
-H "token:eyJhbGciOiJIUzI1Ni..."
-d "page=1"
-d "limit=10"
-d "start_time=2021-01-01 13:00:00"
-d "end_time=2021-04-01 13:00:00"
-d "transid=900020210421143708733914284188"
https://openapi.xu5g.com/tsp/macbooks/get
{
"status": 0,
"message": "操作成功",
"data": {
"result": [
{
"api_alias": "tsp.device.get",
"appkey": 9000,
"client_agent": "GoFrameHTTPClient v1.15.4",
"client_ip": "127.0.0.1",
"client_port": 50730,
"created": "2021-04-21 14:37:08",
"log_type": "LOG",
"primary_key": "363b6c277f83651170bb326dfb4fa87b",
"req_method": "GET",
"req_params": "{\"attence_sn\":\"\",\"imei_sn\":\"863659040942673\"}",
"req_url": "//test-openapi.xu5g.com/tsp/device/get?attence_sn=&imei_sn=863659040942673",
"res_httpcode": 200,
"res_params": "{\"status\":0,\"message\":\"操作成功\",\"data\":{\"primary_key\":\"\",\"imei_sn\":\"863659040942673\",\"active_time\":\"2021-04-01 09:41:15\",\"attence_sn\":\"40942673\",\"blood_upload\":0,\"families\":[],\"sos\":[],\"dnd\":[],\"engine\":\"ofaep\",\"iccard_sn\":\"\",\"is_online\":1,\"partner_id\":1,\"appkey\":1000,\"locate_upload\":300,\"mobile\":\"\",\"model_id\":22,\"heart_upload\":0,\"temperature_upload\":0,\"locate_type\":3,\"locate_time\":\"2021-04-01 09:41:15\",\"locate_mode\":2,\"locate_direction\":0,\"locate_address\":\"河南省 郑州市 管城回族区 东风南路 靠近绿地中心北塔\",\"power_rate\":30,\"power_status\":2,\"gsm_rate\":0,\"truename\":\"测试\",\"uuid\":\"\",\"lng\":113.774611,\"lat\":34.766058,\"udtime\":{\"start\":\"06:00\",\"end\":\"22:00\"},\"status\":1}}",
"sdk_version": "1.0.0",
"stack": "",
"timestamp": 1618987028404470,
"trans_id": "900020210421143708733914284188"
}
],
"total": 71606
}
}
兔盯云提供以智能手表、手环、考勤机、蓝牙网关等成熟的智能硬件,同时对应提供完善、稳定的硬件API接入及被动消息推送能力。供需要智能硬件来完善产品板块的企业可以快速接入,减少寻找硬件、测试硬件、调试对接、搭建硬件平台等海量时间和资金成本,极速创建或融合基于智能硬件业务场景的应用。