dingtalk.oapi.robot.message.statistics.listbyconversationid (conversionid维度的机器人消息批量推送统计数据获取接口)

ISV通过该接口可以获取conversationid维度的机器人消息批量推送统计数据

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
read_status Boolean 可选 false 已读状态
push_id String 必须 123 机器人消息推送Id
conversation_ids String [] 必须 123
  • 最大列表长度:20
  • 群Id列表
    page_size Number 必须 10 分页大小
    page Number 必须 1 当前页码

    响应参数

    名称 类型 示例值 描述
    result RobotMsgStatPageResponse result
    • list
    • MsgStatByCIdResVo []
    • list
    • └ name
    • String
    • 张三
    • 成员名称
    • └ conversation_id
    • String
    • 123
    • 群Id
    • └ push_id
    • String
    • 123
    • 机器人消息推送Id
    • └ read_status
    • Boolean
    • 是否已读
    • └ dingtalk_id
    • String
    • 钉钉id
    • pagination
    • PaginationVo
    • pagination
    • └ total_record_num
    • Number
    • 100
    • 总记录数
    • └ total_page
    • Number
    • 10
    • 总页数
    • └ current_page
    • Number
    • 1
    • 当前页数
    success Boolean 是否调用成功
    errcode Number 错误码
    errmsg String 错误值

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    DingTalkClient client = new DefaultDingTalkClient("https://oapi.dingtalk.com/topapi/robot/message/statistics/listbyconversationid");
    OapiRobotMessageStatisticsListbyconversationidRequest req = new OapiRobotMessageStatisticsListbyconversationidRequest();
    req.setReadStatus(false);
    req.setPushId("123");
    req.setConversationIds("123");
    req.setPageSize(10L);
    req.setPage(1L);
    OapiRobotMessageStatisticsListbyconversationidResponse rsp = client.execute(req, access_token);
    System.out.println(rsp.getBody());

    响应示例

    • JSON示例
    {
        "result":{
            "list":[
                {
                        "name":"张三",
                        "conversation_id":"123",
                        "push_id":"123",
                        "read_status":,
                        "dingtalk_id":""
                }
            ],
            "pagination":{
                "total_record_num":100,
                "total_page":10,
                "current_page":1
            }
        },
        "success":,
        "errcode":,
        "errmsg":""
    }

    异常示例

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

    错误码解释

    错误码 错误描述 解决方案

    API工具

    如何获得此API

    FAQ

    返回
    顶部