TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripBtripEmployeeQueryRequest req = new AlitripBtripEmployeeQueryRequest();
AlitripBtripEmployeeQueryRequest.OpenEmployeeQueryRequest obj1 = new AlitripBtripEmployeeQueryRequest.OpenEmployeeQueryRequest();
obj1.setPageSize(10L);
obj1.setPageToken("9YN+jxa7PcxbNUTISeKjEw==");
obj1.setThirdPartCorpId("test");
obj1.setThirdPartJobNo("001");
obj1.setModifiedTimeGreaterOrEqualThan("2021-06-02 00:00:00");
req.setParamOpenEmployeeQueryRequest(obj1);
AlitripBtripEmployeeQueryResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlitripBtripEmployeeQueryRequest req = new AlitripBtripEmployeeQueryRequest();
AlitripBtripEmployeeQueryRequest.OpenEmployeeQueryRequestDomain obj1 = new AlitripBtripEmployeeQueryRequest.OpenEmployeeQueryRequestDomain();
obj1.PageSize = 10L;
obj1.PageToken = "9YN+jxa7PcxbNUTISeKjEw==";
obj1.ThirdPartCorpId = "test";
obj1.ThirdPartJobNo = "001";
obj1.ModifiedTimeGreaterOrEqualThan = "2021-06-02 00:00:00";
req.ParamOpenEmployeeQueryRequest_ = obj1;
AlitripBtripEmployeeQueryResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlitripBtripEmployeeQueryRequest;
$param_open_employee_query_request = new OpenEmployeeQueryRequest;
$param_open_employee_query_request->page_size="10";
$param_open_employee_query_request->page_token="9YN+jxa7PcxbNUTISeKjEw==";
$param_open_employee_query_request->third_part_corp_id="test";
$param_open_employee_query_request->third_part_job_no="001";
$param_open_employee_query_request->modified_time_greater_or_equal_than="2021-06-02 00:00:00";
$req->setParamOpenEmployeeQueryRequest(json_encode($param_open_employee_query_request));
$resp = $c->execute($req, $sessionKey);
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=alitrip.btrip.employee.query' \
-d 'partner_id=apidoc' \
-d 'session=db79cf5e-8ed4-43df-b1bc-fff9b2cd5997' \
-d 'sign=9198A865620EF2446D8C1C2FD2174D02' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-03+07%3A59%3A19' \
-d 'v=2.0' \
-d 'param_open_employee_query_request=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlitripBtripEmployeeQueryRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.param_open_employee_query_request=""
try:
resp= req.getResponse(sessionkey)
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,"alitrip.btrip.employee.query");
add_param(pRequest,"param_open_employee_query_request","数据结构JSON示例");
pResponse = top_execute(pClient,pRequest,sessionKey);
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('alitrip.btrip.employee.query', {
'param_open_employee_query_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})