TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaIcbuShopcloneExternalshopinfoWriteRequest req = new AlibabaIcbuShopcloneExternalshopinfoWriteRequest();
AlibabaIcbuShopcloneExternalshopinfoWriteRequest.ExternalShopInfoWriteParam obj1 = new AlibabaIcbuShopcloneExternalshopinfoWriteRequest.ExternalShopInfoWriteParam();
obj1.setVendorCompanyName("杭州赛群网络科技有限公司");
obj1.setServiceCode("ISVXXA72807");
obj1.setFromShopName("服装有限公司");
obj1.setFromShopPageUrl("https//www.example.com/detail.htm");
obj1.setAction("BIND");
obj1.setConfirmTime(StringUtils.parseDateTime("2023-10-10 00:00:00"));
obj1.setFromShopDetailAttrJson("{\"level\": \"1\"}");
obj1.setCompanyId(200012245L);
obj1.setAccountId(2215693550141L);
obj1.setFromShopPlatformCode("1688");
obj1.setFromShopUniqueId("1234567ABCDE");
req.setExternalShopInfoWriteParam(obj1);
AlibabaIcbuShopcloneExternalshopinfoWriteResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaIcbuShopcloneExternalshopinfoWriteRequest req = new AlibabaIcbuShopcloneExternalshopinfoWriteRequest();
AlibabaIcbuShopcloneExternalshopinfoWriteRequest.ExternalShopInfoWriteParamDomain obj1 = new AlibabaIcbuShopcloneExternalshopinfoWriteRequest.ExternalShopInfoWriteParamDomain();
obj1.VendorCompanyName = "杭州赛群网络科技有限公司";
obj1.ServiceCode = "ISVXXA72807";
obj1.FromShopName = "服装有限公司";
obj1.FromShopPageUrl = "https//www.example.com/detail.htm";
obj1.Action = "BIND";
obj1.ConfirmTime = DateTime.Parse(2023-10-10 00:00:00");
obj1.FromShopDetailAttrJson = "{\"level\": \"1\"}";
obj1.CompanyId = 200012245L;
obj1.AccountId = 2215693550141L;
obj1.FromShopPlatformCode = "1688";
obj1.FromShopUniqueId = "1234567ABCDE";
req.ExternalShopInfoWriteParam_ = obj1;
AlibabaIcbuShopcloneExternalshopinfoWriteResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaIcbuShopcloneExternalshopinfoWriteRequest;
$external_shop_info_write_param = new ExternalShopInfoWriteParam;
$external_shop_info_write_param->vendor_company_name="杭州赛群网络科技有限公司";
$external_shop_info_write_param->service_code="ISVXXA72807";
$external_shop_info_write_param->from_shop_name="服装有限公司";
$external_shop_info_write_param->from_shop_page_url="https//www.example.com/detail.htm";
$external_shop_info_write_param->action="BIND";
$external_shop_info_write_param->confirm_time="2023-10-10 00:00:00";
$external_shop_info_write_param->from_shop_detail_attr_json="{\"level\": \"1\"}";
$external_shop_info_write_param->company_id="200012245";
$external_shop_info_write_param->account_id="2215693550141";
$external_shop_info_write_param->from_shop_platform_code="1688";
$external_shop_info_write_param->from_shop_unique_id="1234567ABCDE";
$req->setExternalShopInfoWriteParam(json_encode($external_shop_info_write_param));
$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.icbu.shopclone.externalshopinfo.write' \
-d 'partner_id=apidoc' \
-d 'sign=34FF9CF0A32D5D3ADF827C4D6182FE0E' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-29+17%3A24%3A32' \
-d 'v=2.0' \
-d 'external_shop_info_write_param=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaIcbuShopcloneExternalshopinfoWriteRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.external_shop_info_write_param=""
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.icbu.shopclone.externalshopinfo.write");
add_param(pRequest,"external_shop_info_write_param","数据结构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.icbu.shopclone.externalshopinfo.write', {
'external_shop_info_write_param':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})