TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
LianfanHuiwaTaskFashionimageSubmitRequest req = new LianfanHuiwaTaskFashionimageSubmitRequest();
LianfanHuiwaTaskFashionimageSubmitRequest.BatchGen3DImgTopReq obj1 = new LianfanHuiwaTaskFashionimageSubmitRequest.BatchGen3DImgTopReq();
LianfanHuiwaTaskFashionimageSubmitRequest.BatchGen3DImageRequest obj2 = new LianfanHuiwaTaskFashionimageSubmitRequest.BatchGen3DImageRequest();
List<LianfanHuiwaTaskFashionimageSubmitRequest.Gen3DImageRequest> list4 = new ArrayList<LianfanHuiwaTaskFashionimageSubmitRequest.Gen3DImageRequest>();
LianfanHuiwaTaskFashionimageSubmitRequest.Gen3DImageRequest obj5 = new LianfanHuiwaTaskFashionimageSubmitRequest.Gen3DImageRequest();
list4.add(obj5);
List<LianfanHuiwaTaskFashionimageSubmitRequest.InputImageMattingDTO> list8 = new ArrayList<LianfanHuiwaTaskFashionimageSubmitRequest.InputImageMattingDTO>();
LianfanHuiwaTaskFashionimageSubmitRequest.InputImageMattingDTO obj9 = new LianfanHuiwaTaskFashionimageSubmitRequest.InputImageMattingDTO();
list8.add(obj9);
obj9.setOriginalImageUrl("https://img.alicdn.com/imgextra/i2/2217654845903/O1CN01JhFZiG1tTcwJqSUj9_!!2217654845903-0-aigc_business_user.jpg");
obj9.setMaskImageUrl("https://img.alicdn.com/imgextra/i2/2217654845903/O1CN01JhFZiG1tTcwJqSUj9_!!2217654845903-0-aigc_business_user.jpg");
obj9.setImageContentType(1L);
list6.setImageInfoList(list8);
LianfanHuiwaTaskFashionimageSubmitRequest.Blank3DTemplateDTO obj11 = new LianfanHuiwaTaskFashionimageSubmitRequest.Blank3DTemplateDTO();
obj11.setTemplateMaskUrl("https://img.alicdn.com/imgextra/i2/2217654845903/O1CN01JhFZiG1tTcwJqSUj9_!!2217654845903-0-aigc_business_user.jpg");
obj11.setTemplateUrl("https://img.alicdn.com/imgextra/i2/2217654845903/O1CN01JhFZiG1tTcwJqSUj9_!!2217654845903-0-aigc_business_user.jpg");
list10.setBlank3dTemplate(obj11);
obj5.setPassThrough("{}");
obj2.setGen3dImageRequests(list4);
obj1.setBatchGen3dImageRequest(obj2);
req.setBatchGen3DImgTopReq(obj1);
LianfanHuiwaTaskFashionimageSubmitResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
LianfanHuiwaTaskFashionimageSubmitRequest req = new LianfanHuiwaTaskFashionimageSubmitRequest();
LianfanHuiwaTaskFashionimageSubmitRequest.BatchGen3DImgTopReqDomain obj1 = new LianfanHuiwaTaskFashionimageSubmitRequest.BatchGen3DImgTopReqDomain();
LianfanHuiwaTaskFashionimageSubmitRequest.BatchGen3DImageRequestDomain obj2 = new LianfanHuiwaTaskFashionimageSubmitRequest.BatchGen3DImageRequestDomain();
List<LianfanHuiwaTaskFashionimageSubmitRequest.Gen3DImageRequestDomain> list4 = new List<LianfanHuiwaTaskFashionimageSubmitRequest.Gen3DImageRequestDomain>();
LianfanHuiwaTaskFashionimageSubmitRequest.Gen3DImageRequestDomain obj5 = new LianfanHuiwaTaskFashionimageSubmitRequest.Gen3DImageRequestDomain();
list4.Add(obj5);
List<LianfanHuiwaTaskFashionimageSubmitRequest.InputImageMattingDTODomain> list7 = new List<LianfanHuiwaTaskFashionimageSubmitRequest.InputImageMattingDTODomain>();
LianfanHuiwaTaskFashionimageSubmitRequest.InputImageMattingDTODomain obj8 = new LianfanHuiwaTaskFashionimageSubmitRequest.InputImageMattingDTODomain();
list7.Add(obj8);
obj8.OriginalImageUrl = "https://img.alicdn.com/imgextra/i2/2217654845903/O1CN01JhFZiG1tTcwJqSUj9_!!2217654845903-0-aigc_business_user.jpg";
obj8.MaskImageUrl = "https://img.alicdn.com/imgextra/i2/2217654845903/O1CN01JhFZiG1tTcwJqSUj9_!!2217654845903-0-aigc_business_user.jpg";
obj8.ImageContentType = 1L;
obj5.ImageInfoList= list7;
LianfanHuiwaTaskFashionimageSubmitRequest.Blank3DTemplateDTODomain obj9 = new LianfanHuiwaTaskFashionimageSubmitRequest.Blank3DTemplateDTODomain();
obj9.TemplateMaskUrl = "https://img.alicdn.com/imgextra/i2/2217654845903/O1CN01JhFZiG1tTcwJqSUj9_!!2217654845903-0-aigc_business_user.jpg";
obj9.TemplateUrl = "https://img.alicdn.com/imgextra/i2/2217654845903/O1CN01JhFZiG1tTcwJqSUj9_!!2217654845903-0-aigc_business_user.jpg";
obj5.Blank3dTemplate= obj9;
obj5.PassThrough = "{}";
obj2.Gen3dImageRequests= list4;
obj1.BatchGen3dImageRequest= obj2;
req.BatchGen3DImgTopReq_ = obj1;
LianfanHuiwaTaskFashionimageSubmitResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new LianfanHuiwaTaskFashionimageSubmitRequest;
$batch_gen3_d_img_top_req = new BatchGen3DImgTopReq;
$batch_gen_3d_image_request = new BatchGen3DImageRequest;
$gen_3d_image_requests = new Gen3DImageRequest;
$image_info_list = new InputImageMattingDTO;
$image_info_list->original_image_url="https://img.alicdn.com/imgextra/i2/2217654845903/O1CN01JhFZiG1tTcwJqSUj9_!!2217654845903-0-aigc_business_user.jpg";
$image_info_list->mask_image_url="https://img.alicdn.com/imgextra/i2/2217654845903/O1CN01JhFZiG1tTcwJqSUj9_!!2217654845903-0-aigc_business_user.jpg";
$image_info_list->image_content_type="1";
$gen_3d_image_requests->image_info_list = $image_info_list;
$blank_3d_template = new Blank3DTemplateDTO;
$blank_3d_template->template_mask_url="https://img.alicdn.com/imgextra/i2/2217654845903/O1CN01JhFZiG1tTcwJqSUj9_!!2217654845903-0-aigc_business_user.jpg";
$blank_3d_template->template_url="https://img.alicdn.com/imgextra/i2/2217654845903/O1CN01JhFZiG1tTcwJqSUj9_!!2217654845903-0-aigc_business_user.jpg";
$gen_3d_image_requests->blank_3d_template = $blank_3d_template;
$gen_3d_image_requests->pass_through="{}";
$batch_gen_3d_image_request->gen_3d_image_requests = $gen_3d_image_requests;
$batch_gen3_d_img_top_req->batch_gen_3d_image_request = $batch_gen_3d_image_request;
$req->setBatchGen3DImgTopReq(json_encode($batch_gen3_d_img_top_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=lianfan.huiwa.task.fashionimage.submit' \
-d 'partner_id=apidoc' \
-d 'sign=9238A1636C82D9B74CF8DF9334309F57' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-06-22+21%3A11%3A34' \
-d 'v=2.0' \
-d 'batch_gen3_d_img_top_req=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.LianfanHuiwaTaskFashionimageSubmitRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.batch_gen3_d_img_top_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,"lianfan.huiwa.task.fashionimage.submit");
add_param(pRequest,"batch_gen3_d_img_top_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('lianfan.huiwa.task.fashionimage.submit', {
'batch_gen3_d_img_top_req':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})