TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripFuturehotelStaffApplyGetRequest req = new AlitripFuturehotelStaffApplyGetRequest();
AlitripFuturehotelStaffApplyGetRequest.GetStaffApplyRequest obj1 = new AlitripFuturehotelStaffApplyGetRequest.GetStaffApplyRequest();
obj1.setAuditStatus(1L);
obj1.setAuditor("111");
obj1.setEncryptedData("1111123123");
obj1.setEnterpriseBusinessId(11111L);
obj1.setEnterpriseId(1111L);
obj1.setMobilePhone("18888888888");
obj1.setSsoUserId(123L);
req.setParamGetStaffApplyRequest(obj1);
AlitripFuturehotelStaffApplyGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlitripFuturehotelStaffApplyGetRequest req = new AlitripFuturehotelStaffApplyGetRequest();
AlitripFuturehotelStaffApplyGetRequest.GetStaffApplyRequestDomain obj1 = new AlitripFuturehotelStaffApplyGetRequest.GetStaffApplyRequestDomain();
obj1.AuditStatus = 1L;
obj1.Auditor = "111";
obj1.EncryptedData = "1111123123";
obj1.EnterpriseBusinessId = 11111L;
obj1.EnterpriseId = 1111L;
obj1.MobilePhone = "18888888888";
obj1.SsoUserId = 123L;
req.ParamGetStaffApplyRequest_ = obj1;
AlitripFuturehotelStaffApplyGetResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlitripFuturehotelStaffApplyGetRequest;
$param_get_staff_apply_request = new GetStaffApplyRequest;
$param_get_staff_apply_request->audit_status="1";
$param_get_staff_apply_request->auditor="111";
$param_get_staff_apply_request->encrypted_data="1111123123";
$param_get_staff_apply_request->enterprise_business_id="11111";
$param_get_staff_apply_request->enterprise_id="1111";
$param_get_staff_apply_request->mobile_phone="18888888888";
$param_get_staff_apply_request->sso_user_id="123";
$req->setParamGetStaffApplyRequest(json_encode($param_get_staff_apply_request));
$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=alitrip.futurehotel.staff.apply.get' \
-d 'partner_id=apidoc' \
-d 'sign=8731FF34B8184C30E43D7D44DDA86034' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-12+04%3A38%3A04' \
-d 'v=2.0' \
-d 'param_get_staff_apply_request=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlitripFuturehotelStaffApplyGetRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.param_get_staff_apply_request=""
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,"alitrip.futurehotel.staff.apply.get");
add_param(pRequest,"param_get_staff_apply_request","数据结构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('alitrip.futurehotel.staff.apply.get', {
'param_get_staff_apply_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})