1.5.2 获取使用次数最高的10个应用
| 请求方式 | GET |
|---|---|
| 请求URL | http: // {LarkXR3.2管理服务器IP}:8181/taskInfo/getTotalCntTopList |
升级说明
- 接口地址由“/taskInfo/getTopTaskCntList”变更为“/taskInfo/getTotalCntTopList”,默认端口由8282变为8181
说明:adminKey,timestamp,signature这三个参数有两种方式传递
一种是以参数的形式传递,例如:http://192.168.1.11:8181/taskInfo/getTotalCntTopList?adminKey=603299366654678855& timestamp=1585729005673&signature=4C1BFE264A113A99C526BF5565EEBE642792A0B6
另一种是在OkHttp请求的header中传递,例如 :
Request.Builder builder = new Request.Builder().
addHeader("adminKey", "603299366654678855")
.addHeader("timestamp", "1585729005673")
.addHeader("signature", "4C1BFE264A113A99C526BF5565EEBE642792A0B6")
.url("http://192.168.1.11:8181/taskInfo/getTotalCntTopList");
| 名称 | 类型 | 是否必须 | 描述 |
|---|---|---|---|
| appliId | Long | 否 | 应用ID,只查询指定应用的总使用次数 |
| adminKey | String | 是 | 参见1.3.1 |
| timestamp | Long | 是 | 参见1.3.1 |
| signature | String | 是 | 参见1.3.1 |
| 返回结果: |
| 名称 | 类型 | 是否必须 | 描述 |
|---|---|---|---|
| code | Integer | 是 | 返回状态 |
| message | String | 否 | 返回消息 |
| result | String | 否 | |
| appliId | String | 是 | 应用Id |
| appliName | String | 是 | 应用名称 |
| cnt | int | 是 | 使用次数 |
返回示例
{
"code": 1000,
"message": "操作成功",
"result": [
{
"appliId": "714550322550276096",
"appliName": "切水果",
"cnt": 1266
},
{
"appliId": "712678695067713536",
"appliName": "people",
"cnt": 743
}
]
}