TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaIbWorkcoreEmployeeModifyemployeeRequest req = new AlibabaIbWorkcoreEmployeeModifyemployeeRequest();
AlibabaIbWorkcoreEmployeeModifyemployeeRequest.WorkBenchContext obj1 = new AlibabaIbWorkcoreEmployeeModifyemployeeRequest.WorkBenchContext();
obj1.setIp("11");
obj1.setCampusId(1L);
obj1.setLanguage("中文");
obj1.setCompanyId(1000087L);
obj1.setEagleEyeTraceId("11");
obj1.setUserName("11");
obj1.setCampusCode("11");
obj1.setUserId(11L);
req.setWorkBenchContext(obj1);
AlibabaIbWorkcoreEmployeeModifyemployeeRequest.EmployeeDto obj2 = new AlibabaIbWorkcoreEmployeeModifyemployeeRequest.EmployeeDto();
obj2.setMobile("18780544779");
obj2.setPassportAccountId(1L);
obj2.setTelephone("0851-8899765");
obj2.setCompanyId(100710L);
obj2.setWorkStatus("WORKING");
obj2.setAvatarPreViewUrl("FguKOT6PSSSRhmA3Ys2vkQAAAEIAAQED");
obj2.setCorpUserId("1");
obj2.setEmail("wgzhxy@163.com");
obj2.setAlipay("wgzhxy@163.com");
obj2.setWorkNo("7899");
obj2.setAvatar("FguKOT6PSSSRhmA3Ys2vkQAAAEIAAQED");
obj2.setCompanyName("南都");
obj2.setQq("903026479");
obj2.setAvatarUrl("FguKOT6PSSSRhmA3Ys2vkQAAAEIAAQED");
obj2.setName("李宏章");
obj2.setDingUserId("李宏章");
obj2.setMobileComment("1882323232");
obj2.setNickName("宏章");
obj2.setWeixin("weixin0081");
obj2.setEnName("sss");
obj2.setWangwang("ssads");
obj2.setId(1111L);
obj2.setDingding("ding001");
obj2.setAccountId(1111L);
obj2.setSex("F");
obj2.setBirthday("1992-12-10");
req.setEmployeeDto(obj2);
req.setAccountId("111244397");
AlibabaIbWorkcoreEmployeeModifyemployeeResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaIbWorkcoreEmployeeModifyemployeeRequest req = new AlibabaIbWorkcoreEmployeeModifyemployeeRequest();
AlibabaIbWorkcoreEmployeeModifyemployeeRequest.WorkBenchContextDomain obj1 = new AlibabaIbWorkcoreEmployeeModifyemployeeRequest.WorkBenchContextDomain();
obj1.Ip = "11";
obj1.CampusId = 1L;
obj1.Language = "中文";
obj1.CompanyId = 1000087L;
obj1.EagleEyeTraceId = "11";
obj1.UserName = "11";
obj1.CampusCode = "11";
obj1.UserId = 11L;
req.WorkBenchContext_ = obj1;
AlibabaIbWorkcoreEmployeeModifyemployeeRequest.EmployeeDtoDomain obj2 = new AlibabaIbWorkcoreEmployeeModifyemployeeRequest.EmployeeDtoDomain();
obj2.Mobile = "18780544779";
obj2.PassportAccountId = 1L;
obj2.Telephone = "0851-8899765";
obj2.CompanyId = 100710L;
obj2.WorkStatus = "WORKING";
obj2.AvatarPreViewUrl = "FguKOT6PSSSRhmA3Ys2vkQAAAEIAAQED";
obj2.CorpUserId = "1";
obj2.Email = "wgzhxy@163.com";
obj2.Alipay = "wgzhxy@163.com";
obj2.WorkNo = "7899";
obj2.Avatar = "FguKOT6PSSSRhmA3Ys2vkQAAAEIAAQED";
obj2.CompanyName = "南都";
obj2.Qq = "903026479";
obj2.AvatarUrl = "FguKOT6PSSSRhmA3Ys2vkQAAAEIAAQED";
obj2.Name = "李宏章";
obj2.DingUserId = "李宏章";
obj2.MobileComment = "1882323232";
obj2.NickName = "宏章";
obj2.Weixin = "weixin0081";
obj2.EnName = "sss";
obj2.Wangwang = "ssads";
obj2.Id = 1111L;
obj2.Dingding = "ding001";
obj2.AccountId = 1111L;
obj2.Sex = "F";
obj2.Birthday = "1992-12-10";
req.EmployeeDto_ = obj2;
req.AccountId = "111244397";
AlibabaIbWorkcoreEmployeeModifyemployeeResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaIbWorkcoreEmployeeModifyemployeeRequest;
$work_bench_context = new WorkBenchContext;
$work_bench_context->ip="11";
$work_bench_context->campus_id="1";
$work_bench_context->language="中文";
$work_bench_context->company_id="1000087";
$work_bench_context->eagle_eye_trace_id="11";
$work_bench_context->user_name="11";
$work_bench_context->campus_code="11";
$work_bench_context->user_id="11";
$req->setWorkBenchContext(json_encode($work_bench_context));
$employee_dto = new EmployeeDto;
$employee_dto->mobile="18780544779";
$employee_dto->passport_account_id="1";
$employee_dto->telephone="0851-8899765";
$employee_dto->company_id="100710";
$employee_dto->work_status="WORKING";
$employee_dto->avatar_pre_view_url="FguKOT6PSSSRhmA3Ys2vkQAAAEIAAQED";
$employee_dto->corp_user_id="1";
$employee_dto->email="wgzhxy@163.com";
$employee_dto->alipay="wgzhxy@163.com";
$employee_dto->work_no="7899";
$employee_dto->avatar="FguKOT6PSSSRhmA3Ys2vkQAAAEIAAQED";
$employee_dto->company_name="南都";
$employee_dto->qq="903026479";
$employee_dto->avatar_url="FguKOT6PSSSRhmA3Ys2vkQAAAEIAAQED";
$employee_dto->name="李宏章";
$employee_dto->ding_user_id="李宏章";
$employee_dto->mobile_comment="1882323232";
$employee_dto->nick_name="宏章";
$employee_dto->weixin="weixin0081";
$employee_dto->en_name="sss";
$employee_dto->wangwang="ssads";
$employee_dto->id="1111";
$employee_dto->dingding="ding001";
$employee_dto->account_id="1111";
$employee_dto->sex="F";
$employee_dto->birthday="1992-12-10";
$req->setEmployeeDto(json_encode($employee_dto));
$req->setAccountId("111244397");
$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.ib.workcore.employee.modifyemployee' \
-d 'partner_id=apidoc' \
-d 'sign=513E83FF0C361CE3122ADBBD51FEB5C8' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-29+15%3A49%3A40' \
-d 'v=2.0' \
-d 'account_id=111244397' \
-d 'employee_dto=null' \
-d 'work_bench_context=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaIbWorkcoreEmployeeModifyemployeeRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.work_bench_context=""
req.employee_dto=""
req.account_id="111244397"
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.ib.workcore.employee.modifyemployee");
add_param(pRequest,"work_bench_context","数据结构JSON示例");
add_param(pRequest,"employee_dto","数据结构JSON示例");
add_param(pRequest,"account_id","111244397");
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.ib.workcore.employee.modifyemployee', {
'work_bench_context':'数据结构JSON示例',
'employee_dto':'数据结构JSON示例',
'account_id':'111244397'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})