TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
LianfanHuiwaAicreationImageSubmitRequest req = new LianfanHuiwaAicreationImageSubmitRequest();
LianfanHuiwaAicreationImageSubmitRequest.AICreationModelTopRequest obj1 = new LianfanHuiwaAicreationImageSubmitRequest.AICreationModelTopRequest();
obj1.setModelName("打卡地点1");
obj1.setCoverImageUrl("https://img.alicdn.com/imgextra/i4/2217313296581/O1CN01H4IvZl1yU9dMRGN46_!!2217313296581-0-aigc_business_user.jpg");
obj1.setShowChannel(1001L);
obj1.setImageType(1L);
req.setAiCreationModelTopRequest(obj1);
LianfanHuiwaAicreationImageSubmitResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
LianfanHuiwaAicreationImageSubmitRequest req = new LianfanHuiwaAicreationImageSubmitRequest();
LianfanHuiwaAicreationImageSubmitRequest.AICreationModelTopRequestDomain obj1 = new LianfanHuiwaAicreationImageSubmitRequest.AICreationModelTopRequestDomain();
obj1.ModelName = "打卡地点1";
obj1.CoverImageUrl = "https://img.alicdn.com/imgextra/i4/2217313296581/O1CN01H4IvZl1yU9dMRGN46_!!2217313296581-0-aigc_business_user.jpg";
obj1.ShowChannel = 1001L;
obj1.ImageType = 1L;
req.AiCreationModelTopRequest_ = obj1;
LianfanHuiwaAicreationImageSubmitResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new LianfanHuiwaAicreationImageSubmitRequest;
$ai_creation_model_top_request = new AICreationModelTopRequest;
$ai_creation_model_top_request->model_name="打卡地点1";
$ai_creation_model_top_request->cover_image_url="https://img.alicdn.com/imgextra/i4/2217313296581/O1CN01H4IvZl1yU9dMRGN46_!!2217313296581-0-aigc_business_user.jpg";
$ai_creation_model_top_request->show_channel="1001";
$ai_creation_model_top_request->image_type="1";
$req->setAiCreationModelTopRequest(json_encode($ai_creation_model_top_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=lianfan.huiwa.aicreation.image.submit' \
-d 'partner_id=apidoc' \
-d 'sign=43E6F0077526252E7B8D938E7D142E81' \
-d 'sign_method=hmac' \
-d 'timestamp=2026-04-04+05%3A44%3A05' \
-d 'v=2.0' \
-d 'ai_creation_model_top_request=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.LianfanHuiwaAicreationImageSubmitRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.ai_creation_model_top_request="数据结构示例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.aicreation.image.submit");
add_param(pRequest,"ai_creation_model_top_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',
'url': 'http://gw.api.taobao.com/router/rest'
});
client.execute('lianfan.huiwa.aicreation.image.submit', {
'ai_creation_model_top_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})