TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaTmallgenieScpPlanRawpoGapReturnRequest req = new AlibabaTmallgenieScpPlanRawpoGapReturnRequest();
AlibabaTmallgenieScpPlanRawpoGapReturnRequest.RawPurchaseOrderGapRequest obj1 = new AlibabaTmallgenieScpPlanRawpoGapReturnRequest.RawPurchaseOrderGapRequest();
List<AlibabaTmallgenieScpPlanRawpoGapReturnRequest.RawPurchaseOrderGapDto> list3 = new ArrayList<AlibabaTmallgenieScpPlanRawpoGapReturnRequest.RawPurchaseOrderGapDto>();
AlibabaTmallgenieScpPlanRawpoGapReturnRequest.RawPurchaseOrderGapDto obj4 = new AlibabaTmallgenieScpPlanRawpoGapReturnRequest.RawPurchaseOrderGapDto();
list3.add(obj4);
obj4.setExtendJson("{\"a\":\"b\"}");
obj4.setTenant("ailab");
obj4.setKeyFigureDate(StringUtils.parseDateTime("2020-02-02 00:00:00"));
obj4.setMaterielCode("xxx");
obj4.setLocationCodeTo("xxx");
obj4.setLocationCode("xxx");
obj4.setRawPoGapQty(3030L);
obj1.setRawPurchaseOrderGapDTOs(list3);
obj1.setRequestExtendJson("{\"a\":\"b\"}");
req.setRawPogapRequest(obj1);
AlibabaTmallgenieScpPlanRawpoGapReturnResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaTmallgenieScpPlanRawpoGapReturnRequest req = new AlibabaTmallgenieScpPlanRawpoGapReturnRequest();
AlibabaTmallgenieScpPlanRawpoGapReturnRequest.RawPurchaseOrderGapRequestDomain obj1 = new AlibabaTmallgenieScpPlanRawpoGapReturnRequest.RawPurchaseOrderGapRequestDomain();
List<AlibabaTmallgenieScpPlanRawpoGapReturnRequest.RawPurchaseOrderGapDtoDomain> list3 = new List<AlibabaTmallgenieScpPlanRawpoGapReturnRequest.RawPurchaseOrderGapDtoDomain>();
AlibabaTmallgenieScpPlanRawpoGapReturnRequest.RawPurchaseOrderGapDtoDomain obj4 = new AlibabaTmallgenieScpPlanRawpoGapReturnRequest.RawPurchaseOrderGapDtoDomain();
list3.Add(obj4);
obj4.ExtendJson = "{\"a\":\"b\"}";
obj4.Tenant = "ailab";
obj4.KeyFigureDate = DateTime.Parse(2020-02-02 00:00:00");
obj4.MaterielCode = "xxx";
obj4.LocationCodeTo = "xxx";
obj4.LocationCode = "xxx";
obj4.RawPoGapQty = 3030L;
obj1.RawPurchaseOrderGapDTOs= list3;
obj1.RequestExtendJson = "{\"a\":\"b\"}";
req.RawPogapRequest_ = obj1;
AlibabaTmallgenieScpPlanRawpoGapReturnResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaTmallgenieScpPlanRawpoGapReturnRequest;
$raw_pogap_request = new RawPurchaseOrderGapRequest;
$raw_purchase_order_gap_d_t_os = new RawPurchaseOrderGapDto;
$raw_purchase_order_gap_d_t_os->extend_json="{\"a\":\"b\"}";
$raw_purchase_order_gap_d_t_os->tenant="ailab";
$raw_purchase_order_gap_d_t_os->key_figure_date="2020-02-02 00:00:00";
$raw_purchase_order_gap_d_t_os->materiel_code="xxx";
$raw_purchase_order_gap_d_t_os->location_code_to="xxx";
$raw_purchase_order_gap_d_t_os->location_code="xxx";
$raw_purchase_order_gap_d_t_os->raw_po_gap_qty="3030";
$raw_pogap_request->raw_purchase_order_gap_d_t_os = $raw_purchase_order_gap_d_t_os;
$raw_pogap_request->request_extend_json="{\"a\":\"b\"}";
$req->setRawPogapRequest(json_encode($raw_pogap_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=alibaba.tmallgenie.scp.plan.rawpo.gap.return' \
-d 'partner_id=apidoc' \
-d 'sign=E0195F9686890C19EC04B6CBE0193AC3' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-27+23%3A27%3A54' \
-d 'v=2.0' \
-d 'raw_pogap_request=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaTmallgenieScpPlanRawpoGapReturnRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.raw_pogap_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,"alibaba.tmallgenie.scp.plan.rawpo.gap.return");
add_param(pRequest,"raw_pogap_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('alibaba.tmallgenie.scp.plan.rawpo.gap.return', {
'raw_pogap_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})