TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaIbWorkcoreHrsGetpersonRequest req = new AlibabaIbWorkcoreHrsGetpersonRequest();
AlibabaIbWorkcoreHrsGetpersonRequest.QueryPersonDto obj1 = new AlibabaIbWorkcoreHrsGetpersonRequest.QueryPersonDto();
obj1.setPersonId(1L);
obj1.setAccountId("1");
req.setQuery(obj1);
AlibabaIbWorkcoreHrsGetpersonRequest.SceneDto obj2 = new AlibabaIbWorkcoreHrsGetpersonRequest.SceneDto();
obj2.setOperatorId("1");
obj2.setAppId("1");
req.setSceneDTO(obj2);
AlibabaIbWorkcoreHrsGetpersonRequest.WorkBenchContext obj3 = new AlibabaIbWorkcoreHrsGetpersonRequest.WorkBenchContext();
obj3.setUserId(11L);
obj3.setSystemId("212");
obj3.setCampusId(1213L);
req.setWorkBenchContext(obj3);
AlibabaIbWorkcoreHrsGetpersonResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaIbWorkcoreHrsGetpersonRequest req = new AlibabaIbWorkcoreHrsGetpersonRequest();
AlibabaIbWorkcoreHrsGetpersonRequest.QueryPersonDtoDomain obj1 = new AlibabaIbWorkcoreHrsGetpersonRequest.QueryPersonDtoDomain();
obj1.PersonId = 1L;
obj1.AccountId = "1";
req.Query_ = obj1;
AlibabaIbWorkcoreHrsGetpersonRequest.SceneDtoDomain obj2 = new AlibabaIbWorkcoreHrsGetpersonRequest.SceneDtoDomain();
obj2.OperatorId = "1";
obj2.AppId = "1";
req.SceneDTO_ = obj2;
AlibabaIbWorkcoreHrsGetpersonRequest.WorkBenchContextDomain obj3 = new AlibabaIbWorkcoreHrsGetpersonRequest.WorkBenchContextDomain();
obj3.UserId = 11L;
obj3.SystemId = "212";
obj3.CampusId = 1213L;
req.WorkBenchContext_ = obj3;
AlibabaIbWorkcoreHrsGetpersonResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaIbWorkcoreHrsGetpersonRequest;
$query = new QueryPersonDto;
$query->person_id="1";
$query->account_id="1";
$req->setQuery(json_encode($query));
$scene_d_t_o = new SceneDto;
$scene_d_t_o->operator_id="1";
$scene_d_t_o->app_id="1";
$req->setSceneDTO(json_encode($scene_d_t_o));
$work_bench_context = new WorkBenchContext;
$work_bench_context->user_id="11";
$work_bench_context->system_id="212";
$work_bench_context->campus_id="1213";
$req->setWorkBenchContext(json_encode($work_bench_context));
$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.hrs.getperson' \
-d 'partner_id=apidoc' \
-d 'sign=FFA0887C662BA932E831C1CE46A61A39' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-29+15%3A57%3A01' \
-d 'v=2.0' \
-d 'query=null' \
-d 'scene_d_t_o=null' \
-d 'work_bench_context=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaIbWorkcoreHrsGetpersonRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.query=""
req.scene_d_t_o=""
req.work_bench_context=""
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.hrs.getperson");
add_param(pRequest,"query","数据结构JSON示例");
add_param(pRequest,"scene_d_t_o","数据结构JSON示例");
add_param(pRequest,"work_bench_context","数据结构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.ib.workcore.hrs.getperson', {
'query':'数据结构JSON示例',
'scene_d_t_o':'数据结构JSON示例',
'work_bench_context':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})