TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAdlabAdsimCaseCopyRequest req = new AlibabaAdlabAdsimCaseCopyRequest();
AlibabaAdlabAdsimCaseCopyRequest.AdsimCaseCopyRequestDto obj1 = new AlibabaAdlabAdsimCaseCopyRequest.AdsimCaseCopyRequestDto();
obj1.setRepeatStrategy("cover");
obj1.setFromCaseSetIdList(new Long[] { };
);
obj1.setCopyType("hard");
obj1.setToCaseSetId(1L);
obj1.setFromCaseIdList(new Long[] { };
);
obj1.setToProjectId(1L);
req.setRequestDto(obj1);
AlibabaAdlabAdsimCaseCopyResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaAdlabAdsimCaseCopyRequest req = new AlibabaAdlabAdsimCaseCopyRequest();
AlibabaAdlabAdsimCaseCopyRequest.AdsimCaseCopyRequestDtoDomain obj1 = new AlibabaAdlabAdsimCaseCopyRequest.AdsimCaseCopyRequestDtoDomain();
obj1.RepeatStrategy = "cover";
obj1.FromCaseSetIdList = new long[] { };
;
obj1.CopyType = "hard";
obj1.ToCaseSetId = 1L;
obj1.FromCaseIdList = new long[] { };
;
obj1.ToProjectId = 1L;
req.RequestDto_ = obj1;
AlibabaAdlabAdsimCaseCopyResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaAdlabAdsimCaseCopyRequest;
$request_dto = new AdsimCaseCopyRequestDto;
$request_dto->repeat_strategy="cover";
$request_dto->from_case_set_id_list="[]";
$request_dto->copy_type="hard";
$request_dto->to_case_set_id="1";
$request_dto->from_case_id_list="[]";
$request_dto->to_project_id="1";
$req->setRequestDto(json_encode($request_dto));
$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.adlab.adsim.case.copy' \
-d 'partner_id=apidoc' \
-d 'sign=5F34A47D8DA641E676077611B9AD3D22' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-24+16%3A38%3A25' \
-d 'v=2.0' \
-d 'request_dto=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaAdlabAdsimCaseCopyRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.request_dto=""
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.adlab.adsim.case.copy");
add_param(pRequest,"request_dto","数据结构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.adlab.adsim.case.copy', {
'request_dto':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})