dingtalk.oapi.ats.plugin.statistics.job.list (获取职位信息for统计)

获取职位的基本信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
biz_code String 必须 ddats 招聘业务标识
cursor String 可选 12ABC3EDS 分页游标位置,不传默认第一页
size Number 必须 200 分页大小

响应参数

名称 类型 示例值 描述
result AtsPageResult {..} 分页结果
  • └ next_cursor
  • String
  • 12ABC3EDS
  • 游标,下次分页请求使用
  • └ has_more
  • Boolean
  • true
  • 是否还有数据
  • list
  • TopJobStatisticsVo []
  • [..]
  • 职位信息列表
  • └ biz_code
  • String
  • ddats
  • 招聘业务标识
  • └ corp_id
  • String
  • ding12345678
  • 企业id
  • └ job_id
  • String
  • job12345567
  • 职位id
  • └ name
  • String
  • 开发工程师
  • 职位名称
  • └ status
  • Number
  • 0
  • 0:新创建 1:已发布 2:废弃 3:招满
  • └ main_dept_id
  • Number
  • 123
  • 职位归属部门id
  • └ head_count
  • Number
  • 2
  • 招聘人数
  • └ owner_userid
  • String
  • 123abc
  • 职位负责人id
  • └ creator_userid
  • String
  • 456dfg
  • 职位创建人id
  • └ gmt_create_mils
  • Number
  • 1594883804000
  • 创建时间,unix时间戳,单位毫秒
  • └ gmt_modified_mils
  • Number
  • 1594883804000
  • 更新时间,unix时间戳,单位毫秒
errcode Number 10001 错误码
errmsg String xxxx 错误信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
DingTalkClient client = new DefaultDingTalkClient("https://oapi.dingtalk.com/topapi/ats/plugin/statistics/job/list");
OapiAtsPluginStatisticsJobListRequest req = new OapiAtsPluginStatisticsJobListRequest();
req.setBizCode("ddats");
req.setCursor("12ABC3EDS");
req.setSize(200L);
OapiAtsPluginStatisticsJobListResponse rsp = client.execute(req, access_token);
System.out.println(rsp.getBody());

响应示例

  • JSON示例
{
    "result":{
        "next_cursor":"12ABC3EDS",
        "has_more":true,
        "list":[
            {
                    "biz_code":"ddats",
                    "corp_id":"ding12345678",
                    "job_id":"job12345567",
                    "name":"开发工程师",
                    "status":0,
                    "main_dept_id":123,
                    "head_count":2,
                    "owner_userid":"123abc",
                    "creator_userid":"456dfg",
                    "gmt_create_mils":1594883804000,
                    "gmt_modified_mils":1594883804000
            }
        ]
    },
    "errcode":10001,
    "errmsg":"xxxx"
}

异常示例

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

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部