dingtalk.oapi.ats.resume.add (添加简历信息)

添加简历信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param CollResumeMailParam 必须 简历文件参数
  • └ matched_jobs
  • String []
  • 可选
  • [xxxx,xxxx,xxxx]
  • 匹配到的职位列表
  • └ channel
  • String
  • 必须
  • 51job
  • 渠道来源,接入前请提前沟通
  • resume_detail_info
  • ResumeDetailInfo
  • 可选
  • 结构化的简历详情
  • └ name
  • String
  • 可选
  • 张三
  • 姓名,必传
  • └ phone_num
  • String
  • 可选
  • 18668421234
  • 电话,必传
  • └ email
  • String
  • 可选
  • 123@mail.com
  • 邮箱地址
  • └ sex
  • String
  • 可选
  • 男性
  • 男性,女性
  • └ birth
  • String
  • 可选
  • 2010-01
  • 出生日期
  • └ graduate_time
  • String
  • 可选
  • 2010-01
  • 毕业时间
  • └ begin_work_time
  • String
  • 可选
  • 2010-01
  • 开始工作时间
  • └ nationality
  • String
  • 可选
  • 中国
  • 国籍
  • └ married
  • String
  • 可选
  • 已婚
  • 已婚,未婚,离婚
  • └ native_place
  • String
  • 可选
  • 浙江
  • 籍贯
  • └ now_location
  • String
  • 可选
  • 浙江省杭州市
  • 先居住地
  • └ forward_location
  • String
  • 可选
  • 浙江省杭州市
  • 期望工作地
  • └ school
  • String
  • 可选
  • 浙江大学
  • 毕业院校
  • └ education
  • String
  • 可选
  • 本科
  • 小学,初中,高中,中专,大专,本科,硕士,博士,其他
  • └ advanced_degree
  • String
  • 可选
  • 理学学士
  • 学位
  • └ student_type
  • String
  • 可选
  • 全日制
  • 学历情况
  • └ school_type
  • String
  • 可选
  • 985
  • 学校类别
  • └ speciality
  • String
  • 可选
  • 计算机科学与技术
  • 专业
  • └ salary
  • String
  • 可选
  • 1000
  • 当前薪资
  • └ aim_salary
  • String
  • 可选
  • 2000
  • 期望薪资
  • └ title_standard
  • String
  • 可选
  • 开发工程师
  • 职位名称
  • └ vocation_standard
  • String
  • 可选
  • 互联网
  • 行业名称
  • └ political
  • String
  • 可选
  • 党员
  • 政治面貌
  • └ job_status
  • String
  • 可选
  • 求职中
  • 求职状态
  • └ grade_of_english
  • String
  • 可选
  • 6级
  • 英语等级
  • education_info_list
  • EducationInfo []
  • 可选
  • 教育经历
  • └ start_date
  • String
  • 可选
  • 2010-01
  • 开始时间
  • └ end_date
  • String
  • 可选
  • 2010-01
  • 结束时间
  • └ school
  • String
  • 可选
  • 浙江大学
  • 学校名称
  • └ speciality
  • String
  • 可选
  • 计算机科学与技术
  • 专业
  • └ education
  • String
  • 可选
  • 本科
  • 学历
  • └ summary
  • String
  • 可选
  • 专业GPA3.2,一等奖学金
  • 详细介绍
  • experience_info_list
  • ExperienceInfo []
  • 可选
  • 工作经历
  • └ start_date
  • String
  • 可选
  • 2010-01
  • 开始时间
  • └ end_date
  • String
  • 可选
  • 2010-01
  • 结束时间
  • └ company
  • String
  • 可选
  • 阿里巴巴
  • 公司名称
  • └ title
  • String
  • 可选
  • 开发工程师
  • 职位名称
  • └ summary
  • String
  • 可选
  • 负责xxx项目的研发工作,取得了xx成果
  • 工作内容
  • training_info_list
  • TrainingInfo []
  • 可选
  • 培训经历
  • └ start_date
  • String
  • 可选
  • 2010-01
  • 开始时间
  • └ end_date
  • String
  • 可选
  • 2010-01
  • 结束时间
  • └ training_institution
  • String
  • 可选
  • 新东方
  • 培训机构名称
  • └ certificate
  • String
  • 可选
  • 高级厨师证书
  • 所获证书
  • └ description_in_details
  • String
  • 可选
  • 川菜,粤菜,维扬菜,煎炸蒸煮
  • 培训详情
  • project_info_list
  • ProjectInfo []
  • 可选
  • 项目经历
  • └ start_date
  • String
  • 可选
  • 2010-01
  • 开始时间
  • └ end_date
  • String
  • 可选
  • 2010-01
  • 结束时间
  • └ project_name
  • String
  • 可选
  • xxx项目
  • 项目名称
  • └ project_description
  • String
  • 可选
  • 项目描述
  • 项目描述
  • └ opt_user_id
  • String
  • 可选
  • userId123
  • 用户userId
  • resume_file
  • ResumeFileStoreVo
  • 可选
  • 简历文件信息
  • └ download_url
  • String
  • 可选
  • xxxx
  • 下载地址
  • └ file_type
  • String
  • 可选
  • pdf
  • 文件类型
  • └ file_name
  • String
  • 可选
  • xxx.pdf
  • 文件名,需要带后缀
  • origin_mail
  • MailContent
  • 可选
  • 原始邮件信息,可选
  • └ received_time
  • String
  • 可选
  • 15984483611280
  • 收件时间,时间戳毫秒
  • └ mail_id
  • String
  • 可选
  • xxxx
  • 邮件id
  • └ from_mail_alias
  • String
  • 可选
  • xxx
  • 发件人姓名
  • └ mail_address
  • String
  • 可选
  • xxxx
  • 邮件地址,可选
  • └ title
  • String
  • 可选
  • xxxx
  • 邮件标题,可选
  • └ body_html
  • String
  • 可选
  • xxxxx
  • 邮件正文,可选
  • └ from_mail_address
  • String
  • 可选
  • xxxx
  • 发件人邮件地址,可选
  • └ virtual_phone_number_flag
  • Boolean
  • 可选
  • true
  • 是否是虚拟手机号
  • └ resume_channel_url
  • String
  • 可选
  • www.alibaba.com
  • 虚拟手机号简历跳转到渠道链接
biz_code String 必须 ddats 业务唯一标识,接入前请提前沟通

响应参数

名称 类型 示例值 描述
errmsg String 无访问权限 错误信息
errcode Number 400020 错误码
result TopCollectResumeResult {} 处理结果
  • └ resume_id
  • String
  • abcd1234
  • 简历id
  • └ pc_jump_url
  • String
  • xxxx
  • pc端跳转地址
  • └ mobile_jump_url
  • String
  • xxxx
  • 移动端跳转地址

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
DingTalkClient client = new DefaultDingTalkClient("https://oapi.dingtalk.com/topapi/ats/resume/add");
OapiAtsResumeAddRequest req = new OapiAtsResumeAddRequest();
CollResumeMailParam obj1 = new CollResumeMailParam();
obj1.setMatchedJobs("xxxx,xxxx,xxxx");
obj1.setChannel("51job");
ResumeDetailInfo obj2 = new ResumeDetailInfo();
obj2.setName("张三");
obj2.setPhoneNum("18668421234");
obj2.setEmail("123@mail.com");
obj2.setSex("男性");
obj2.setBirth("2010-01");
obj2.setGraduateTime("2010-01");
obj2.setBeginWorkTime("2010-01");
obj2.setNationality("中国");
obj2.setMarried("已婚");
obj2.setNativePlace("浙江");
obj2.setNowLocation("浙江省杭州市");
obj2.setForwardLocation("浙江省杭州市");
obj2.setSchool("浙江大学");
obj2.setEducation("本科");
obj2.setAdvancedDegree("理学学士");
obj2.setStudentType("全日制");
obj2.setSchoolType("985");
obj2.setSpeciality("计算机科学与技术");
obj2.setSalary("1000");
obj2.setAimSalary("2000");
obj2.setTitleStandard("开发工程师");
obj2.setVocationStandard("互联网");
obj2.setPolitical("党员");
obj2.setJobStatus("求职中");
obj2.setGradeOfEnglish("6级");
List<EducationInfo> list4 = new ArrayList<EducationInfo>();
EducationInfo obj5 = new EducationInfo();
list4.add(obj5);
obj5.setStartDate("2010-01");
obj5.setEndDate("2010-01");
obj5.setSchool("浙江大学");
obj5.setSpeciality("计算机科学与技术");
obj5.setEducation("本科");
obj5.setSummary("专业GPA3.2,一等奖学金");
obj2.setEducationInfoList(list4);
List<ExperienceInfo> list7 = new ArrayList<ExperienceInfo>();
ExperienceInfo obj8 = new ExperienceInfo();
list7.add(obj8);
obj8.setStartDate("2010-01");
obj8.setEndDate("2010-01");
obj8.setCompany("阿里巴巴");
obj8.setTitle("开发工程师");
obj8.setSummary("负责xxx项目的研发工作,取得了xx成果");
obj2.setExperienceInfoList(list7);
List<TrainingInfo> list10 = new ArrayList<TrainingInfo>();
TrainingInfo obj11 = new TrainingInfo();
list10.add(obj11);
obj11.setStartDate("2010-01");
obj11.setEndDate("2010-01");
obj11.setTrainingInstitution("新东方");
obj11.setCertificate("高级厨师证书");
obj11.setDescriptionInDetails("川菜,粤菜,维扬菜,煎炸蒸煮");
obj2.setTrainingInfoList(list10);
List<ProjectInfo> list13 = new ArrayList<ProjectInfo>();
ProjectInfo obj14 = new ProjectInfo();
list13.add(obj14);
obj14.setStartDate("2010-01");
obj14.setEndDate("2010-01");
obj14.setProjectName("xxx项目");
obj14.setProjectDescription("项目描述");
obj2.setProjectInfoList(list13);
obj1.setResumeDetailInfo(obj2);
obj1.setOptUserId("userId123");
ResumeFileStoreVo obj15 = new ResumeFileStoreVo();
obj15.setDownloadUrl("xxxx");
obj15.setFileType("pdf");
obj15.setFileName("xxx.pdf");
obj1.setResumeFile(obj15);
MailContent obj16 = new MailContent();
obj16.setReceivedTime("15984483611280");
obj16.setMailId("xxxx");
obj16.setFromMailAlias("xxx");
obj16.setMailAddress("xxxx");
obj16.setTitle("xxxx");
obj16.setBodyHtml("xxxxx");
obj16.setFromMailAddress("xxxx");
obj1.setOriginMail(obj16);
obj1.setVirtualPhoneNumberFlag(true);
obj1.setResumeChannelUrl("www.alibaba.com");
req.setParam(obj1);
req.setBizCode("ddats");
OapiAtsResumeAddResponse rsp = client.execute(req, access_token);
System.out.println(rsp.getBody());

响应示例

  • JSON示例
{
    "errmsg":"无访问权限",
    "errcode":400020,
    "result":{
        "resume_id":"abcd1234",
        "pc_jump_url":"xxxx",
        "mobile_jump_url":"xxxx"
    }
}

异常示例

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

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部