TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
SmpZfbtPicUploadSendRequest req = new SmpZfbtPicUploadSendRequest();
SmpZfbtPicUploadSendRequest.TopGbPicUploadRequest obj1 = new SmpZfbtPicUploadSendRequest.TopGbPicUploadRequest();
obj1.setMailNo("SF123456789");
obj1.setReportType(10L);
List<SmpZfbtPicUploadSendRequest.TopPicUploadInfoDTO> list3 = new ArrayList<SmpZfbtPicUploadSendRequest.TopPicUploadInfoDTO>();
SmpZfbtPicUploadSendRequest.TopPicUploadInfoDTO obj4 = new SmpZfbtPicUploadSendRequest.TopPicUploadInfoDTO();
list3.add(obj4);
obj4.setPicUrl("https://www.picname.jpg");
obj4.setPicType("301");
obj4.setPicUploadTime("2025-07-28 10:00:01");
obj4.setPicStd("A00001");
obj1.setPicInfoList(list3);
obj1.setTbSubTradeId(3789192738123212L);
obj1.setBizType("GBYJ");
obj1.setDeliveryBrandCode("SF");
obj1.setOperateStrategy("APPEND_COVER");
obj1.setRemark("备注");
obj1.setTbTradeId(3789192738223212L);
req.setTopGbPicUploadRequest(obj1);
SmpZfbtPicUploadSendResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
SmpZfbtPicUploadSendRequest req = new SmpZfbtPicUploadSendRequest();
SmpZfbtPicUploadSendRequest.TopGbPicUploadRequestDomain obj1 = new SmpZfbtPicUploadSendRequest.TopGbPicUploadRequestDomain();
obj1.MailNo = "SF123456789";
obj1.ReportType = 10L;
List<SmpZfbtPicUploadSendRequest.TopPicUploadInfoDTODomain> list3 = new List<SmpZfbtPicUploadSendRequest.TopPicUploadInfoDTODomain>();
SmpZfbtPicUploadSendRequest.TopPicUploadInfoDTODomain obj4 = new SmpZfbtPicUploadSendRequest.TopPicUploadInfoDTODomain();
list3.Add(obj4);
obj4.PicUrl = "https://www.picname.jpg";
obj4.PicType = "301";
obj4.PicUploadTime = "2025-07-28 10:00:01";
obj4.PicStd = "A00001";
obj1.PicInfoList= list3;
obj1.TbSubTradeId = 3789192738123212L;
obj1.BizType = "GBYJ";
obj1.DeliveryBrandCode = "SF";
obj1.OperateStrategy = "APPEND_COVER";
obj1.Remark = "备注";
obj1.TbTradeId = 3789192738223212L;
req.TopGbPicUploadRequest_ = obj1;
SmpZfbtPicUploadSendResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new SmpZfbtPicUploadSendRequest;
$top_gb_pic_upload_request = new TopGbPicUploadRequest;
$top_gb_pic_upload_request->mail_no="SF123456789";
$top_gb_pic_upload_request->report_type="10";
$pic_info_list = new TopPicUploadInfoDTO;
$pic_info_list->pic_url="https://www.picname.jpg";
$pic_info_list->pic_type="301";
$pic_info_list->pic_upload_time="2025-07-28 10:00:01";
$pic_info_list->pic_std="A00001";
$top_gb_pic_upload_request->pic_info_list = $pic_info_list;
$top_gb_pic_upload_request->tb_sub_trade_id="3789192738123212";
$top_gb_pic_upload_request->biz_type="GBYJ";
$top_gb_pic_upload_request->delivery_brand_code="SF";
$top_gb_pic_upload_request->operate_strategy="APPEND_COVER";
$top_gb_pic_upload_request->remark="备注";
$top_gb_pic_upload_request->tb_trade_id="3789192738223212";
$req->setTopGbPicUploadRequest(json_encode($top_gb_pic_upload_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=taobao.smp.zfbt.pic.upload.send' \
-d 'partner_id=apidoc' \
-d 'sign=ED0EF1C97CC53DA9CD4D5027169E4301' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-08-23+08%3A10%3A40' \
-d 'v=2.0' \
-d 'top_gb_pic_upload_request=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.SmpZfbtPicUploadSendRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.top_gb_pic_upload_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,"taobao.smp.zfbt.pic.upload.send");
add_param(pRequest,"top_gb_pic_upload_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('taobao.smp.zfbt.pic.upload.send', {
'top_gb_pic_upload_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})