TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
WeikePerformancePutRequest req = new WeikePerformancePutRequest();
req.setId(6666L);
PerformanceInfoWrapper obj1 = new PerformanceInfoWrapper();
obj1.setHasBonusConfig(false);
List<PerformanceInfoDTO> list3 = new ArrayList<PerformanceInfoDTO>();
PerformanceInfoDTO obj4 = new PerformanceInfoDTO();
list3.add(obj4);
obj4.setFirstResponseTime("hello world");
obj4.setAvgLastOnlineTime("hello world");
obj4.setAvgOnlineTimePerDay("hello world");
obj4.setConversionRateOfSer("hello world");
obj4.setSalesQuantity("hello world");
obj4.setSalesAmount("hello world");
obj4.setTotalOnlineTime("hello world");
obj4.setOnlineDays("hello world");
obj4.setUnitPriceOfSer("hello world");
obj4.setResponseRate("hello world");
obj4.setSubAccountName("hello world");
obj4.setAvgOnlineTime("hello world");
obj4.setSalesBonus("hello world");
obj4.setAvgResponseTime("hello world");
obj1.setPerformanceInfoList(list3);
obj1.setHasAuthorize(false);
obj1.setStatisticsEndTime("hello world");
obj1.setStatisticsStartTime("hello world");
req.setPerInfoWrapper(obj1);
WeikePerformancePutResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
WeikePerformancePutRequest req = new WeikePerformancePutRequest();
req.Id = 6666L;
PerformanceInfoWrapper obj1 = new PerformanceInfoWrapper();
obj1.HasBonusConfig = false;
List<PerformanceInfoDTO> list3 = new List<PerformanceInfoDTO>();
PerformanceInfoDTO obj4 = new PerformanceInfoDTO();
list3.Add(obj4);
obj4.FirstResponseTime = "hello world";
obj4.AvgLastOnlineTime = "hello world";
obj4.AvgOnlineTimePerDay = "hello world";
obj4.ConversionRateOfSer = "hello world";
obj4.SalesQuantity = "hello world";
obj4.SalesAmount = "hello world";
obj4.TotalOnlineTime = "hello world";
obj4.OnlineDays = "hello world";
obj4.UnitPriceOfSer = "hello world";
obj4.ResponseRate = "hello world";
obj4.SubAccountName = "hello world";
obj4.AvgOnlineTime = "hello world";
obj4.SalesBonus = "hello world";
obj4.AvgResponseTime = "hello world";
obj1.PerformanceInfoList= list3;
obj1.HasAuthorize = false;
obj1.StatisticsEndTime = "hello world";
obj1.StatisticsStartTime = "hello world";
req.PerInfoWrapper_ = obj1;
WeikePerformancePutResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new WeikePerformancePutRequest;
$req->setId("6666");
$per_info_wrapper = new PerformanceInfoWrapper;
$per_info_wrapper->has_bonus_config="false";
$performance_info_list = new PerformanceInfoDTO;
$performance_info_list->first_response_time="hello world";
$performance_info_list->avg_last_online_time="hello world";
$performance_info_list->avg_online_time_per_day="hello world";
$performance_info_list->conversion_rate_of_ser="hello world";
$performance_info_list->sales_quantity="hello world";
$performance_info_list->sales_amount="hello world";
$performance_info_list->total_online_time="hello world";
$performance_info_list->online_days="hello world";
$performance_info_list->unit_price_of_ser="hello world";
$performance_info_list->response_rate="hello world";
$performance_info_list->sub_account_name="hello world";
$performance_info_list->avg_online_time="hello world";
$performance_info_list->sales_bonus="hello world";
$performance_info_list->avg_response_time="hello world";
$per_info_wrapper->performance_info_list = $performance_info_list;
$per_info_wrapper->has_authorize="false";
$per_info_wrapper->statistics_end_time="hello world";
$per_info_wrapper->statistics_start_time="hello world";
$req->setPerInfoWrapper(json_encode($per_info_wrapper));
$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.weike.performance.put' \
-d 'partner_id=apidoc' \
-d 'sign=2050B6F468BA157C5B5630F6B9982A09' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-04+16%3A01%3A14' \
-d 'v=2.0' \
-d 'id=6666' \
-d 'per_info_wrapper=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.WeikePerformancePutRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.id=6666
req.per_info_wrapper="数据结构示例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.weike.performance.put");
add_param(pRequest,"id","6666");
add_param(pRequest,"per_info_wrapper","数据结构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.weike.performance.put', {
'id':'6666',
'per_info_wrapper':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})