dingtalk.oapi.report.statistics (获取日志统计数据)

获取日志统计数据

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
report_id String 必须 abc 日志id

响应参数

名称 类型 示例值 描述
result ReportStatisticsVo 统计结果
  • └ read_num
  • Number
  • 1
  • 已读人数
  • └ comment_num
  • Number
  • 1
  • 评论个数
  • └ comment_user_num
  • Number
  • 1
  • 评论人数,去重
  • └ like_num
  • Number
  • 1
  • 点赞人数
errcode Number 0 错误码
errmsg String 成功 错误信息
success Boolean true 是否成功

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
DingTalkClient client = new DefaultDingTalkClient("https://oapi.dingtalk.com/topapi/report/statistics");
OapiReportStatisticsRequest req = new OapiReportStatisticsRequest();
req.setReportId("abc");
OapiReportStatisticsResponse rsp = client.execute(req, access_token);
System.out.println(rsp.getBody());

响应示例

  • JSON示例
{
    "result":{
        "read_num":1,
        "comment_num":1,
        "comment_user_num":1,
        "like_num":1
    },
    "errcode":0,
    "errmsg":"成功",
    "success":true
}

异常示例

  • JSON示例
{
	"errcode":88,
	"errmsg":"ding talk error"
}

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部