TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaTmallgenieScpPlanForecastOemUploadRequest req = new AlibabaTmallgenieScpPlanForecastOemUploadRequest();
AlibabaTmallgenieScpPlanForecastOemUploadRequest.SupplierForecastRequest obj1 = new AlibabaTmallgenieScpPlanForecastOemUploadRequest.SupplierForecastRequest();
List<AlibabaTmallgenieScpPlanForecastOemUploadRequest.SupplierForecastParamDto> list3 = new ArrayList<AlibabaTmallgenieScpPlanForecastOemUploadRequest.SupplierForecastParamDto>();
AlibabaTmallgenieScpPlanForecastOemUploadRequest.SupplierForecastParamDto obj4 = new AlibabaTmallgenieScpPlanForecastOemUploadRequest.SupplierForecastParamDto();
list3.add(obj4);
obj4.setExtendJson("{\"a\":\"b\"}");
obj4.setTenant("ailab");
obj4.setKeyFigureDate(StringUtils.parseDateTime("2020-09-09 22:22:22"));
obj4.setForecast("22");
obj4.setLocId("111");
obj4.setPrdId("1xxx");
obj1.setSupplierForecastParamDTOList(list3);
obj1.setRequestExtendJson("{\"a\":\"b\"}");
req.setSupplierForecastRequest(obj1);
AlibabaTmallgenieScpPlanForecastOemUploadResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaTmallgenieScpPlanForecastOemUploadRequest req = new AlibabaTmallgenieScpPlanForecastOemUploadRequest();
AlibabaTmallgenieScpPlanForecastOemUploadRequest.SupplierForecastRequestDomain obj1 = new AlibabaTmallgenieScpPlanForecastOemUploadRequest.SupplierForecastRequestDomain();
List<AlibabaTmallgenieScpPlanForecastOemUploadRequest.SupplierForecastParamDtoDomain> list3 = new List<AlibabaTmallgenieScpPlanForecastOemUploadRequest.SupplierForecastParamDtoDomain>();
AlibabaTmallgenieScpPlanForecastOemUploadRequest.SupplierForecastParamDtoDomain obj4 = new AlibabaTmallgenieScpPlanForecastOemUploadRequest.SupplierForecastParamDtoDomain();
list3.Add(obj4);
obj4.ExtendJson = "{\"a\":\"b\"}";
obj4.Tenant = "ailab";
obj4.KeyFigureDate = DateTime.Parse(2020-09-09 22:22:22");
obj4.Forecast = "22";
obj4.LocId = "111";
obj4.PrdId = "1xxx";
obj1.SupplierForecastParamDTOList= list3;
obj1.RequestExtendJson = "{\"a\":\"b\"}";
req.SupplierForecastRequest_ = obj1;
AlibabaTmallgenieScpPlanForecastOemUploadResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaTmallgenieScpPlanForecastOemUploadRequest;
$supplier_forecast_request = new SupplierForecastRequest;
$supplier_forecast_param_d_t_o_list = new SupplierForecastParamDto;
$supplier_forecast_param_d_t_o_list->extend_json="{\"a\":\"b\"}";
$supplier_forecast_param_d_t_o_list->tenant="ailab";
$supplier_forecast_param_d_t_o_list->key_figure_date="2020-09-09 22:22:22";
$supplier_forecast_param_d_t_o_list->forecast="22";
$supplier_forecast_param_d_t_o_list->loc_id="111";
$supplier_forecast_param_d_t_o_list->prd_id="1xxx";
$supplier_forecast_request->supplier_forecast_param_d_t_o_list = $supplier_forecast_param_d_t_o_list;
$supplier_forecast_request->request_extend_json="{\"a\":\"b\"}";
$req->setSupplierForecastRequest(json_encode($supplier_forecast_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.forecast.oem.upload' \
-d 'partner_id=apidoc' \
-d 'sign=494980860F5F4843383453B8A32F73E7' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-27+23%3A27%3A55' \
-d 'v=2.0' \
-d 'supplier_forecast_request=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaTmallgenieScpPlanForecastOemUploadRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.supplier_forecast_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.forecast.oem.upload");
add_param(pRequest,"supplier_forecast_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.forecast.oem.upload', {
'supplier_forecast_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})