TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaMmcLogisticsGetupdatehumanlaborsRequest req = new AlibabaMmcLogisticsGetupdatehumanlaborsRequest();
AlibabaMmcLogisticsGetupdatehumanlaborsRequest.HumanLaborQuery obj1 = new AlibabaMmcLogisticsGetupdatehumanlaborsRequest.HumanLaborQuery();
obj1.setLaborIdIList(new Long[] { };
);
obj1.setOutTraceId("xxxx");
obj1.setMerchantCode("MMC");
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);
AlibabaMmcLogisticsGetupdatehumanlaborsResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaMmcLogisticsGetupdatehumanlaborsRequest req = new AlibabaMmcLogisticsGetupdatehumanlaborsRequest();
AlibabaMmcLogisticsGetupdatehumanlaborsRequest.HumanLaborQueryDomain obj1 = new AlibabaMmcLogisticsGetupdatehumanlaborsRequest.HumanLaborQueryDomain();
obj1.LaborIdIList = new long[] { };
;
obj1.OutTraceId = "xxxx";
obj1.MerchantCode = "MMC";
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;
AlibabaMmcLogisticsGetupdatehumanlaborsResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaMmcLogisticsGetupdatehumanlaborsRequest;
$param0 = new HumanLaborQuery;
$param0->labor_id_i_list="";
$param0->out_trace_id="xxxx";
$param0->merchant_code="MMC";
$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.getupdatehumanlabors' \
-d 'partner_id=apidoc' \
-d 'session=f77dbf18-0e4f-4f5c-abde-27d242520460' \
-d 'sign=C14E0C858B58D36B48122F14A20C999D' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-29+16%3A20%3A57' \
-d 'v=2.0' \
-d 'param0=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaMmcLogisticsGetupdatehumanlaborsRequest(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.getupdatehumanlabors");
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.getupdatehumanlabors', {
'param0':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})