6 统计接口

6.1 获取会话中热门问题

  • 接口地址
/v10/tenants/{tenantId}/statisitcs/robots/{robotId}/statistics/questions
  • 接口请求示例
curl -X GET \
  http://robot.easemob.com/v10/tenants/9/statisitcs/robots/6819571e-2f03-49ea-a962-0019fbc0301c/statistics/quetions?startTime=2018-03-25T00:00:00.000Z&endTime=2018-03-31T00:00:00.000Z \
  -H 'token: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJjaGl4aWFveXUyMTFAMTYzLmNvbSIsImlzcyI6ImVhc2Vtb2Itcm9ib3QiLCJ0ZW5hbnRJZCI6OSwiZXhwIjoxNTIyMjM3ODk1LCJpYXQiOjE1MjE2MzMwOTUsInVzZXJJZCI6IjFmYmNhNjE5LTZlMWItNDg2Yi1hOTdhLWE4MDc0ZjRlNzIxMSIsImp0aSI6IjJmZDkzOWM1LWFkNDUtNGVjMS04MzFhLTk1NzRhMDYzODg1NSIsInVzZXJuYW1lIjoiY2hpeGlhb3l1MjExQDE2My5jb20ifQ.BXVLRTwe1IzWHrCZVTNQauJFQQMneYiMr5NeCRYHc68'
  • 请求参数说明
tenantId:租户id
robotId:机器人id
startTime:开始时间(String类型,如:2018-03-25T00:00:00.000Z)
endTime:结束时间(String类型,如:2018-03-31T00:00:00.000Z)
  • 接口返回的ResponseBody
{
    "status": "OK",
    "errorCode": null,
    "errorDescription": null,
    "entity": [
        {
            "name": "转人工客服",
            "value": 768
        },
        {
            "name": "如何上课",
            "value": 472
        },
        {
            "name": "退改课咨询",
            "value": 381
        },
        {
            "name": "咨询订单",
            "value": 298
        },
        {
            "name": "秋季特训班课程",
            "value": 287
        },
        {
            "name": "如何使用手机平板上课",
            "value": 248
        },
        {
            "name": "新学员我想买",
            "value": 229
        },
        {
            "name": "系统班如何退课",
            "value": 171
        },
        {
            "name": "随材物流",
            "value": 161
        },
        {
            "name": "建议投诉",
            "value": 144
        },
        {
            "name": "优惠券",
            "value": 128
        }
    ],
    "first": true,
    "last": false,
    "size": 15,
    "number": 0,
    "numberOfElements": 15,
    "totalPages": 185,
    "totalElements": 2770
}
  • 接口返回参数说明
entity { 
    name:热门问题
    value:次数
}