dingtalk.oapi.enterprise.suborg.totaldata.stat (所辖组织统计接口)

根据stat_date和corp_id查询所辖组织统计接口数据

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
stat_date String 必须 20190723 查询时间
corp_id String 必须 dingabcd 企业ID
return_fields String [] 必须 STAT_DATE,CORP_ID
  • 最大列表长度:50
  • act_ratio_1d_001 最近1天活跃率; act_ratio_1w_001 最近7天活跃率; act_usr_cnt_1d_001 活跃用户数最近1天; act_usr_cnt_1w_001 最近7天活跃用户数; active_mbr_cnt_std_001 历史截至当日激活会员数; active_ratio 激活率; ding_index_1d 最近1天钉钉指数; ding_index_1w 最近7天钉钉指数; mbr_cnt_std_063 历史截至当日企业会员数 ; micro_app_use_ratio_1d 最近1天使用钉钉微应用用户比率;micro_app_use_ratio_1w 最近7天使用钉钉微应用用户比率;micro_app_user_cnt_1d 最近1天使用钉钉微应用用户数;micro_app_user_cnt_1w 最近7天使用钉钉微应用用户数;pm_form_cnt_001 审批模板数; pm_form_cnt_002 自定义模板数; pm_form_self_def_ratio 自定义模板比率; process_user_cnt_1d 最近1天使用审批用户数; process_user_cnt_1w 最近7天使用审批用户数;process_user_ratio_1d 最近1天使用审批的用户比率;process_user_ratio_1w 最近7天使用审批的用户比率;send_message_user_cnt_1d 最近1天沟通用户数;send_message_user_cnt_1w 最近7天沟通用户数;send_message_user_ratio_1d 最近1天沟通率; send_message_user_ratio_1w 最近7天沟通率; sub_org_area_lat 所辖组织的地理纬度 ; sub_org_area_lng 所辖组织的地理经度 ; sub_org_name 所辖组织名称;
    order_by OrderBy 可选 排序
    • └ field
    • String
    • 可选
    • STAT_DATE
    • 排查的key
    • └ order
    • String
    • 可选
    • ACS或者DESC
    • 升序或者降序
    page_start Number 必须 0 分页起始点
    page_size Number 必须 30 分页查询条数,最多30条

    响应参数

    名称 类型 示例值 描述
    result FamilyDoctorDataVo [] 10 系统自动生成
    • └ stat_date
    • String
    • 20190723
    • 查询时间
    • └ corp_id
    • String
    • dingabcd
    • 企业ID
    • └ act_ratio_1d
    • String
    • 10
    • 最近1天活跃率
    • └ act_ratio_1w
    • String
    • 10
    • 最近7天活跃率
    • └ act_usr_cnt_1d
    • String
    • 10
    • 活跃用户数最近1天
    • └ act_usr_cnt_1w
    • String
    • 10
    • 最近7天活跃用户数
    • └ active_mbr_cnt_std
    • String
    • 10
    • 历史截至当日激活会员数
    • └ active_ratio
    • String
    • 10
    • 激活率
    • └ ding_index_1d
    • String
    • 10
    • 最近1天钉钉指数
    • └ ding_index_1w
    • String
    • 10
    • 最近7天钉钉指数
    • └ mbr_cnt_std
    • String
    • 10
    • 历史截至当日企业会员数
    • └ micro_app_use_ratio_1d
    • String
    • 10
    • 最近1天使用钉钉微应用用户比率
    • └ micro_app_use_ratio_1w
    • String
    • 10
    • 最近7天使用钉钉微应用用户比率
    • └ micro_app_user_cnt_1d
    • String
    • 10
    • 最近1天使用钉钉微应用用户数
    • └ micro_app_user_cnt_1w
    • String
    • 10
    • 最近7天使用钉钉微应用用户数
    • └ pm_form_cnt_001
    • String
    • 10
    • 审批模板数
    • └ pm_form_cnt_002
    • String
    • 10
    • 自定义模板数
    • └ pm_form_self_def_ratio
    • String
    • 10
    • 自定义模板比率
    • └ process_user_cnt_1d
    • String
    • 10
    • 最近1天使用审批用户数
    • └ process_user_cnt_1w
    • String
    • 10
    • 最近7天使用审批用户数
    • └ process_user_ratio_1d
    • String
    • 10
    • 最近1天使用审批的用户比率
    • └ process_user_ratio_1w
    • String
    • 10
    • 最近7天使用审批的用户比率
    • └ send_message_user_cnt_1d
    • String
    • 10
    • 最近1天沟通用户数
    • └ send_message_user_cnt_1w
    • String
    • 10
    • 最近7天沟通用户数
    • └ send_message_user_ratio_1d
    • String
    • 10
    • 最近1天沟通率
    • └ send_message_user_ratio_1w
    • String
    • 10
    • 最近7天沟通率
    • └ sub_org_area_lat
    • String
    • 10
    • 所辖组织的地理纬度
    • └ sub_org_area_lng
    • String
    • 10
    • 所辖组织的地理经度
    • └ sub_org_name
    • String
    • 衢州市
    • 所辖组织名称
    success Boolean true 是否成功
    errcode Number 400002 错误码
    errmsg String 参数错误 错误信息

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    DingTalkClient client = new DefaultDingTalkClient("https://oapi.dingtalk.com/topapi/enterprise/suborg/totaldata/stat");
    OapiEnterpriseSuborgTotaldataStatRequest req = new OapiEnterpriseSuborgTotaldataStatRequest();
    req.setStatDate("20190723");
    req.setCorpId("dingabcd");
    req.setReturnFields("STAT_DATE,CORP_ID");
    OrderBy obj1 = new OrderBy();
    obj1.setField("STAT_DATE");
    obj1.setOrder("ACS或者DESC");
    req.setOrderBy(obj1);
    req.setPageStart(0L);
    req.setPageSize(30L);
    OapiEnterpriseSuborgTotaldataStatResponse rsp = client.execute(req, access_token);
    System.out.println(rsp.getBody());

    响应示例

    • JSON示例
    {
        "result":[
            {
                    "stat_date":"20190723",
                    "corp_id":"dingabcd",
                    "act_ratio_1d":"10",
                    "act_ratio_1w":"10",
                    "act_usr_cnt_1d":"10",
                    "act_usr_cnt_1w":"10",
                    "active_mbr_cnt_std":"10",
                    "active_ratio":"10",
                    "ding_index_1d":"10",
                    "ding_index_1w":"10",
                    "mbr_cnt_std":"10",
                    "micro_app_use_ratio_1d":"10",
                    "micro_app_use_ratio_1w":"10",
                    "micro_app_user_cnt_1d":"10",
                    "micro_app_user_cnt_1w":"10",
                    "pm_form_cnt_001":"10",
                    "pm_form_cnt_002":"10",
                    "pm_form_self_def_ratio":"10",
                    "process_user_cnt_1d":"10",
                    "process_user_cnt_1w":"10",
                    "process_user_ratio_1d":"10",
                    "process_user_ratio_1w":"10",
                    "send_message_user_cnt_1d":"10",
                    "send_message_user_cnt_1w":"10",
                    "send_message_user_ratio_1d":"10",
                    "send_message_user_ratio_1w":"10",
                    "sub_org_area_lat":"10",
                    "sub_org_area_lng":"10",
                    "sub_org_name":"衢州市"
            }
        ],
        "success":true,
        "errcode":400002,
        "errmsg":"参数错误"
    }

    异常示例

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

    错误码解释

    错误码 错误描述 解决方案

    API工具

    如何获得此API

    FAQ

    返回
    顶部