TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaMmcLogisticsGethumanlaborsRequest req = new AlibabaMmcLogisticsGethumanlaborsRequest();
AlibabaMmcLogisticsGethumanlaborsRequest.HumanLaborQuery obj1 = new AlibabaMmcLogisticsGethumanlaborsRequest.HumanLaborQuery();
obj1.setLaborIdIList(new Long[] { };
);
obj1.setOutTraceId("xxxxxx");
obj1.setMerchantCode("MMC/CSMMC");
obj1.setMinHrDate(StringUtils.parseDateTime("2021-08-07 12:00:00"));
obj1.setMaxHrDate(StringUtils.parseDateTime("2021-08-07 12:00:00"));
obj1.setPageSize(20L);
obj1.setPage(1L);
obj1.setSource("XXX");
req.setParam0(obj1);
AlibabaMmcLogisticsGethumanlaborsResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaMmcLogisticsGethumanlaborsRequest req = new AlibabaMmcLogisticsGethumanlaborsRequest();
AlibabaMmcLogisticsGethumanlaborsRequest.HumanLaborQueryDomain obj1 = new AlibabaMmcLogisticsGethumanlaborsRequest.HumanLaborQueryDomain();
obj1.LaborIdIList = new long[] { };
;
obj1.OutTraceId = "xxxxxx";
obj1.MerchantCode = "MMC/CSMMC";
obj1.MinHrDate = DateTime.Parse(2021-08-07 12:00:00");
obj1.MaxHrDate = DateTime.Parse(2021-08-07 12:00:00");
obj1.PageSize = 20L;
obj1.Page = 1L;
obj1.Source = "XXX";
req.Param0_ = obj1;
AlibabaMmcLogisticsGethumanlaborsResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaMmcLogisticsGethumanlaborsRequest;
$param0 = new HumanLaborQuery;
$param0->labor_id_i_list="";
$param0->out_trace_id="xxxxxx";
$param0->merchant_code="MMC/CSMMC";
$param0->min_hr_date="2021-08-07 12:00:00";
$param0->max_hr_date="2021-08-07 12:00:00";
$param0->page_size="20";
$param0->page="1";
$param0->source="XXX";
$req->setParam0(json_encode($param0));
$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=alibaba.mmc.logistics.gethumanlabors' \
-d 'partner_id=apidoc' \
-d 'session=fbdc640e-f90a-4c95-8d1e-ae71c945bc2a' \
-d 'sign=FC7BADE5F5B9D2C7B65E103585F86007' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-29+14%3A33%3A30' \
-d 'v=2.0' \
-d 'param0=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaMmcLogisticsGethumanlaborsRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.param0="数据结构示例JSON格式"
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,"alibaba.mmc.logistics.gethumanlabors");
add_param(pRequest,"param0","数据结构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('alibaba.mmc.logistics.gethumanlabors', {
'param0':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})