TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
RhinoIntegrationProductionHangerEntranceRequest req = new RhinoIntegrationProductionHangerEntranceRequest();
RhinoIntegrationProductionHangerEntranceRequest.HangerEntranceReq obj1 = new RhinoIntegrationProductionHangerEntranceRequest.HangerEntranceReq();
obj1.setOrderNo("ORDER001");
obj1.setWorkerNo("W001");
obj1.setOrderTraceCode("OH012345");
obj1.setPositionCode("line1-02");
obj1.setTraceCode("H012345");
obj1.setProcessStartTime(1733995074000L);
obj1.setSizeName("XL");
obj1.setProcessName("查衣");
obj1.setSeqId("20241216001");
req.setHangerEntranceReq(obj1);
RhinoIntegrationProductionHangerEntranceResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
RhinoIntegrationProductionHangerEntranceRequest req = new RhinoIntegrationProductionHangerEntranceRequest();
RhinoIntegrationProductionHangerEntranceRequest.HangerEntranceReqDomain obj1 = new RhinoIntegrationProductionHangerEntranceRequest.HangerEntranceReqDomain();
obj1.OrderNo = "ORDER001";
obj1.WorkerNo = "W001";
obj1.OrderTraceCode = "OH012345";
obj1.PositionCode = "line1-02";
obj1.TraceCode = "H012345";
obj1.ProcessStartTime = 1733995074000L;
obj1.SizeName = "XL";
obj1.ProcessName = "查衣";
obj1.SeqId = "20241216001";
req.HangerEntranceReq_ = obj1;
RhinoIntegrationProductionHangerEntranceResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new RhinoIntegrationProductionHangerEntranceRequest;
$hanger_entrance_req = new HangerEntranceReq;
$hanger_entrance_req->order_no="ORDER001";
$hanger_entrance_req->worker_no="W001";
$hanger_entrance_req->order_trace_code="OH012345";
$hanger_entrance_req->position_code="line1-02";
$hanger_entrance_req->trace_code="H012345";
$hanger_entrance_req->process_start_time="1733995074000";
$hanger_entrance_req->size_name="XL";
$hanger_entrance_req->process_name="查衣";
$hanger_entrance_req->seq_id="20241216001";
$req->setHangerEntranceReq(json_encode($hanger_entrance_req));
$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=taobao.rhino.integration.production.hanger.entrance' \
-d 'partner_id=apidoc' \
-d 'sign=F81D50E5DD24A19BC11DAD23B04F8CFC' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-28+15%3A29%3A39' \
-d 'v=2.0' \
-d 'hanger_entrance_req=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.RhinoIntegrationProductionHangerEntranceRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.hanger_entrance_req="数据结构示例JSON格式"
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,"taobao.rhino.integration.production.hanger.entrance");
add_param(pRequest,"hanger_entrance_req","数据结构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('taobao.rhino.integration.production.hanger.entrance', {
'hanger_entrance_req':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})