TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaRecruitSocialPositionApplyRequest req = new AlibabaRecruitSocialPositionApplyRequest();
AlibabaRecruitSocialPositionApplyRequest.ApplyDto obj1 = new AlibabaRecruitSocialPositionApplyRequest.ApplyDto();
obj1.setChainId("JIFJJWEJREJO");
obj1.setChannel("alibaba,alipay");
obj1.setPositionCode("FDFDSFDS");
AlibabaRecruitSocialPositionApplyRequest.ResumeInfoDto obj2 = new AlibabaRecruitSocialPositionApplyRequest.ResumeInfoDto();
List<AlibabaRecruitSocialPositionApplyRequest.AttachmentDto> list4 = new ArrayList<AlibabaRecruitSocialPositionApplyRequest.AttachmentDto>();
AlibabaRecruitSocialPositionApplyRequest.AttachmentDto obj5 = new AlibabaRecruitSocialPositionApplyRequest.AttachmentDto();
list4.add(obj5);
obj5.setExtention("pdf");
obj5.setIsDeleted("N");
obj5.setMimeType("application/pdf");
obj5.setName("我的简历");
obj5.setOssFileKey("fdasdfasfdasdfasfsaffsa");
obj5.setSize(1024L);
obj5.setType("RESUME");
obj2.setAttachments(list4);
obj2.setAvatarUrl("https://dfhkjsakfsalffds");
obj2.setCode("HGHFHFG");
List<AlibabaRecruitSocialPositionApplyRequest.EducationExpParam> list7 = new ArrayList<AlibabaRecruitSocialPositionApplyRequest.EducationExpParam>();
AlibabaRecruitSocialPositionApplyRequest.EducationExpParam obj8 = new AlibabaRecruitSocialPositionApplyRequest.EducationExpParam();
list7.add(obj8);
obj8.setDegree("本科");
obj8.setEndDate(StringUtils.parseDateTime("2016-01-02 21:32:13"));
obj8.setMajor("计算机");
obj8.setSchoolName("南加州大学");
obj8.setStartDate(StringUtils.parseDateTime("2016-01-02 21:32:13"));
obj2.setEducationExpParamList(list7);
obj2.setEmail("aaaa@a.com");
obj2.setMobile("19683987295");
obj2.setName("名字");
List<AlibabaRecruitSocialPositionApplyRequest.ProjectExpParam> list10 = new ArrayList<AlibabaRecruitSocialPositionApplyRequest.ProjectExpParam>();
AlibabaRecruitSocialPositionApplyRequest.ProjectExpParam obj11 = new AlibabaRecruitSocialPositionApplyRequest.ProjectExpParam();
list10.add(obj11);
obj11.setEndDate(StringUtils.parseDateTime("2016-01-02 21:32:13"));
obj11.setProjectName("淘宝");
obj11.setResponsibility("开发淘宝");
obj11.setStartDate(StringUtils.parseDateTime("2016-01-02 21:32:13"));
obj2.setProjectExpParamList(list10);
AlibabaRecruitSocialPositionApplyRequest.ThirdPartyAccountDto obj12 = new AlibabaRecruitSocialPositionApplyRequest.ThirdPartyAccountDto();
obj12.setAccount("asfasdfa");
obj12.setType("WECHAT");
obj2.setUser(obj12);
List<AlibabaRecruitSocialPositionApplyRequest.WorkExpParam> list14 = new ArrayList<AlibabaRecruitSocialPositionApplyRequest.WorkExpParam>();
AlibabaRecruitSocialPositionApplyRequest.WorkExpParam obj15 = new AlibabaRecruitSocialPositionApplyRequest.WorkExpParam();
list14.add(obj15);
obj15.setCompanyName("阿里巴巴");
obj15.setDepartment("淘宝事业部");
obj15.setEndDate(StringUtils.parseDateTime("2016-01-02 21:32:13"));
obj15.setPositionName("工程师");
obj15.setStartDate(StringUtils.parseDateTime("2016-01-02 21:32:13"));
obj15.setWorkDesc("开发");
obj2.setWorkExpParamList(list14);
obj1.setResume(obj2);
obj1.setRecommender("sdaflkdsfjlksdf");
obj1.setEntrance("POSITION_CARD");
req.setParamApply(obj1);
AlibabaRecruitSocialPositionApplyResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaRecruitSocialPositionApplyRequest req = new AlibabaRecruitSocialPositionApplyRequest();
AlibabaRecruitSocialPositionApplyRequest.ApplyDtoDomain obj1 = new AlibabaRecruitSocialPositionApplyRequest.ApplyDtoDomain();
obj1.ChainId = "JIFJJWEJREJO";
obj1.Channel = "alibaba,alipay";
obj1.PositionCode = "FDFDSFDS";
AlibabaRecruitSocialPositionApplyRequest.ResumeInfoDtoDomain obj2 = new AlibabaRecruitSocialPositionApplyRequest.ResumeInfoDtoDomain();
List<AlibabaRecruitSocialPositionApplyRequest.AttachmentDtoDomain> list4 = new List<AlibabaRecruitSocialPositionApplyRequest.AttachmentDtoDomain>();
AlibabaRecruitSocialPositionApplyRequest.AttachmentDtoDomain obj5 = new AlibabaRecruitSocialPositionApplyRequest.AttachmentDtoDomain();
list4.Add(obj5);
obj5.Extention = "pdf";
obj5.IsDeleted = "N";
obj5.MimeType = "application/pdf";
obj5.Name = "我的简历";
obj5.OssFileKey = "fdasdfasfdasdfasfsaffsa";
obj5.Size = 1024L;
obj5.Type = "RESUME";
obj2.Attachments= list4;
obj2.AvatarUrl = "https://dfhkjsakfsalffds";
obj2.Code = "HGHFHFG";
List<AlibabaRecruitSocialPositionApplyRequest.EducationExpParamDomain> list7 = new List<AlibabaRecruitSocialPositionApplyRequest.EducationExpParamDomain>();
AlibabaRecruitSocialPositionApplyRequest.EducationExpParamDomain obj8 = new AlibabaRecruitSocialPositionApplyRequest.EducationExpParamDomain();
list7.Add(obj8);
obj8.Degree = "本科";
obj8.EndDate = DateTime.Parse(2016-01-02 21:32:13");
obj8.Major = "计算机";
obj8.SchoolName = "南加州大学";
obj8.StartDate = DateTime.Parse(2016-01-02 21:32:13");
obj2.EducationExpParamList= list7;
obj2.Email = "aaaa@a.com";
obj2.Mobile = "19683987295";
obj2.Name = "名字";
List<AlibabaRecruitSocialPositionApplyRequest.ProjectExpParamDomain> list10 = new List<AlibabaRecruitSocialPositionApplyRequest.ProjectExpParamDomain>();
AlibabaRecruitSocialPositionApplyRequest.ProjectExpParamDomain obj11 = new AlibabaRecruitSocialPositionApplyRequest.ProjectExpParamDomain();
list10.Add(obj11);
obj11.EndDate = DateTime.Parse(2016-01-02 21:32:13");
obj11.ProjectName = "淘宝";
obj11.Responsibility = "开发淘宝";
obj11.StartDate = DateTime.Parse(2016-01-02 21:32:13");
obj2.ProjectExpParamList= list10;
AlibabaRecruitSocialPositionApplyRequest.ThirdPartyAccountDtoDomain obj12 = new AlibabaRecruitSocialPositionApplyRequest.ThirdPartyAccountDtoDomain();
obj12.Account = "asfasdfa";
obj12.Type = "WECHAT";
obj2.User= obj12;
List<AlibabaRecruitSocialPositionApplyRequest.WorkExpParamDomain> list14 = new List<AlibabaRecruitSocialPositionApplyRequest.WorkExpParamDomain>();
AlibabaRecruitSocialPositionApplyRequest.WorkExpParamDomain obj15 = new AlibabaRecruitSocialPositionApplyRequest.WorkExpParamDomain();
list14.Add(obj15);
obj15.CompanyName = "阿里巴巴";
obj15.Department = "淘宝事业部";
obj15.EndDate = DateTime.Parse(2016-01-02 21:32:13");
obj15.PositionName = "工程师";
obj15.StartDate = DateTime.Parse(2016-01-02 21:32:13");
obj15.WorkDesc = "开发";
obj2.WorkExpParamList= list14;
obj1.Resume= obj2;
obj1.Recommender = "sdaflkdsfjlksdf";
obj1.Entrance = "POSITION_CARD";
req.ParamApply_ = obj1;
AlibabaRecruitSocialPositionApplyResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaRecruitSocialPositionApplyRequest;
$param_apply = new ApplyDto;
$param_apply->chain_id="JIFJJWEJREJO";
$param_apply->channel="alibaba,alipay";
$param_apply->position_code="FDFDSFDS";
$resume = new ResumeInfoDto;
$attachments = new AttachmentDto;
$attachments->extention="pdf";
$attachments->is_deleted="N";
$attachments->mime_type="application/pdf";
$attachments->name="我的简历";
$attachments->oss_file_key="fdasdfasfdasdfasfsaffsa";
$attachments->size="1024";
$attachments->type="RESUME";
$resume->attachments = $attachments;
$resume->avatar_url="https://dfhkjsakfsalffds";
$resume->code="HGHFHFG";
$education_exp_param_list = new EducationExpParam;
$education_exp_param_list->degree="本科";
$education_exp_param_list->end_date="2016-01-02 21:32:13";
$education_exp_param_list->major="计算机";
$education_exp_param_list->school_name="南加州大学";
$education_exp_param_list->start_date="2016-01-02 21:32:13";
$resume->education_exp_param_list = $education_exp_param_list;
$resume->email="aaaa@a.com";
$resume->mobile="19683987295";
$resume->name="名字";
$project_exp_param_list = new ProjectExpParam;
$project_exp_param_list->end_date="2016-01-02 21:32:13";
$project_exp_param_list->project_name="淘宝";
$project_exp_param_list->responsibility="开发淘宝";
$project_exp_param_list->start_date="2016-01-02 21:32:13";
$resume->project_exp_param_list = $project_exp_param_list;
$user = new ThirdPartyAccountDto;
$user->account="asfasdfa";
$user->type="WECHAT";
$resume->user = $user;
$work_exp_param_list = new WorkExpParam;
$work_exp_param_list->company_name="阿里巴巴";
$work_exp_param_list->department="淘宝事业部";
$work_exp_param_list->end_date="2016-01-02 21:32:13";
$work_exp_param_list->position_name="工程师";
$work_exp_param_list->start_date="2016-01-02 21:32:13";
$work_exp_param_list->work_desc="开发";
$resume->work_exp_param_list = $work_exp_param_list;
$param_apply->resume = $resume;
$param_apply->recommender="sdaflkdsfjlksdf";
$param_apply->entrance="POSITION_CARD";
$req->setParamApply(json_encode($param_apply));
$resp = $c->execute($req);
curl -X POST 'http://gw.api.taobao.com/router/rest' \
-H 'Content-Type:application/x-www-form-urlencoded;charset=utf-8' \
-d 'app_key=12129701' \
-d 'format=json' \
-d 'method=alibaba.recruit.social.position.apply' \
-d 'partner_id=apidoc' \
-d 'sign=66A3C1C19F731EC09A10765C449B7BA7' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-02+22%3A41%3A56' \
-d 'v=2.0' \
-d 'param_apply=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaRecruitSocialPositionApplyRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.param_apply=""
try:
resp= req.getResponse()
print(resp)
except Exception,e:
print(e)
pTopRequest pRequest = alloc_top_request();
pTopResponse pResponse = NULL;
pTaobaoClient pClient = alloc_taobao_client(url, appkey, appsecret);
set_api_name(pRequest,"alibaba.recruit.social.position.apply");
add_param(pRequest,"param_apply","数据结构JSON示例");
pResponse = top_execute(pClient,pRequest,NULL);
printf("ret code:%d\n",pResponse->code);
if(pResponse->code == 0){
pTopResponseIterator ite = init_response_iterator(pResponse);
pResultItem pResultItem = alloc_result_item();
while(parseNext(ite, pResultItem) == 0){
printf("%s:%s\n",pResultItem->key,pResultItem->value);
}
destroy_response_iterator(ite);
destroy_result_item(pResultItem);
}
destroy_top_request(pRequest);
destroy_top_response(pResponse);
destroy_taobao_client(pClient);
TopClient = require('./topClient').TopClient;
var client = new TopClient({
'appkey': 'appkey',
'appsecret': 'secret',
'REST_URL': 'http://gw.api.taobao.com/router/rest'
});
client.execute('alibaba.recruit.social.position.apply', {
'param_apply':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})