Skip to content

计步报表接口

接口说明

计步数据统计

请求URL

本接口通用参数里面method的值为jimi.open.device.getStepCount

HTTP请求方式

GET

请求参数

(1)通用参数
参见: 通用参数
(2)私有参数

参数名参数类型是否必须默认值描述
app_keyString分配给应用的AppKey
access_tokenString授权的令牌
imeisString设备imei号列表(多个用“,”分割)"
startTimeString开始时间,格式为yyyy-MM-dd
endTimeString结束时间,格式为yyyy-MM-dd
pageInt1页,最小值不能小于1
startTimeInt100每页大小,最小值不能小于1

返回值

参数类型描述
codeInt返回码:
0: 正确返回
其它: 失败。参考错误码说明
messageString如果code不为0,会有相应的错误信息提示
resultString返回的数据

result参数列表:

参数类型描述
limitint每页大小
itemsArray(StepTime)计数列表
totalCountint总数
pageCountintint总页数
pageint当前页码
resultArray(StepTime)计数列表

StepTime 参数列表:

参数类型描述
hourint震动时长
imeiString设备imei号
postTimeString上报时间
timesint震动次数

正确返回示例:

js
{
  "code": 0,
  "message": "success",
  "result": {
"limit": 100,
"items": [
​      {
"hour": 0,
"imei": "869017040091518",
"postTime": "2021-08-27",
"times": 8
​      }
​    ],
"totalCount": 1,
"pageCount": 1,
"page": 1,
"orderSort": "",
"order": "DESC",
"result": [
​      {
"hour": 0,
"imei": "869017040091518",
"postTime": "2021-08-27",
"times": 8
​      }
​    ]
  }
}

错误返回示例:

js
 {
   "code": 1001,
   "message": "页尺寸最小值不能小于1",
   "result": null
 }