TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaIcbuShopcloneIcbuproductrightsQueryRequest req = new AlibabaIcbuShopcloneIcbuproductrightsQueryRequest();
AlibabaIcbuShopcloneIcbuproductrightsQueryRequest.ExternalIcbuProductRightsQueryParam obj1 = new AlibabaIcbuShopcloneIcbuproductrightsQueryRequest.ExternalIcbuProductRightsQueryParam();
obj1.setFromProductUniqueIds(""5A2E6C1F", "567ABCDE"");
obj1.setCompanyId(200012245L);
obj1.setAccountId(2215693550141L);
obj1.setFromShopPlatformCode("1688");
obj1.setFromShopUniqueId("1234567ABCDE");
obj1.setIcbuProductIds(new Long[] { 1005936231,2345166496 };
);
req.setExternalIcbuProductRightsQueryParam(obj1);
AlibabaIcbuShopcloneIcbuproductrightsQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaIcbuShopcloneIcbuproductrightsQueryRequest req = new AlibabaIcbuShopcloneIcbuproductrightsQueryRequest();
AlibabaIcbuShopcloneIcbuproductrightsQueryRequest.ExternalIcbuProductRightsQueryParamDomain obj1 = new AlibabaIcbuShopcloneIcbuproductrightsQueryRequest.ExternalIcbuProductRightsQueryParamDomain();
obj1.FromProductUniqueIds = ""5A2E6C1F", "567ABCDE"";
obj1.CompanyId = 200012245L;
obj1.AccountId = 2215693550141L;
obj1.FromShopPlatformCode = "1688";
obj1.FromShopUniqueId = "1234567ABCDE";
obj1.IcbuProductIds = new long[] { 1005936231,2345166496 };
;
req.ExternalIcbuProductRightsQueryParam_ = obj1;
AlibabaIcbuShopcloneIcbuproductrightsQueryResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaIcbuShopcloneIcbuproductrightsQueryRequest;
$external_icbu_product_rights_query_param = new ExternalIcbuProductRightsQueryParam;
$external_icbu_product_rights_query_param->from_product_unique_ids="[\"5A2E6C1F\", \"567ABCDE\"]";
$external_icbu_product_rights_query_param->company_id="200012245";
$external_icbu_product_rights_query_param->account_id="2215693550141";
$external_icbu_product_rights_query_param->from_shop_platform_code="1688";
$external_icbu_product_rights_query_param->from_shop_unique_id="1234567ABCDE";
$external_icbu_product_rights_query_param->icbu_product_ids="[1005936231,2345166496]";
$req->setExternalIcbuProductRightsQueryParam(json_encode($external_icbu_product_rights_query_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.icbuproductrights.query' \
-d 'partner_id=apidoc' \
-d 'sign=5C1DC737E06AAC50E38C1439C0F5A892' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-06+14%3A25%3A12' \
-d 'v=2.0' \
-d 'external_icbu_product_rights_query_param=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaIcbuShopcloneIcbuproductrightsQueryRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.external_icbu_product_rights_query_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.icbuproductrights.query");
add_param(pRequest,"external_icbu_product_rights_query_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.icbuproductrights.query', {
'external_icbu_product_rights_query_param':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})