TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaLvmsBrandSyncbrandrightsRequest req = new AlibabaLvmsBrandSyncbrandrightsRequest();
req.setRpcContextString("{}");
AlibabaLvmsBrandSyncbrandrightsRequest.BrandSyncRightsDto obj1 = new AlibabaLvmsBrandSyncbrandrightsRequest.BrandSyncRightsDto();
obj1.setExternalRightsId("xxxxx");
obj1.setOperateType("xxxxx");
obj1.setRightType("xxxxx");
obj1.setTradeName("xxxxx");
obj1.setApplicationNumber("xxxxx");
obj1.setApplicant("xxxxx");
obj1.setInternationalClassification("xxxxx");
AlibabaLvmsBrandSyncbrandrightsRequest.FileDto obj2 = new AlibabaLvmsBrandSyncbrandrightsRequest.FileDto();
obj2.setUrl("xxxxx");
obj2.setFileName("xxxxx");
obj2.setFileId("xxxxx");
obj2.setValidStartDate(StringUtils.parseDateTime("2000-01-01 00:00:00"));
obj2.setValidEndDate(StringUtils.parseDateTime("2000-01-01 00:00:00"));
obj1.setTrademarkLogo(obj2);
obj1.setNation("xxxxx");
obj1.setTitle("xxxxx");
obj1.setLicenseNumber("xxxxx");
obj1.setCopyrightOwner("xxxxx");
obj1.setWorkCategory("xxxxx");
obj1.setObtainRightsWay("xxxxx");
obj1.setDelegateSecurityIds("Top,Pub");
req.setBrandSyncRightsDTOS(obj1);
AlibabaLvmsBrandSyncbrandrightsResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaLvmsBrandSyncbrandrightsRequest req = new AlibabaLvmsBrandSyncbrandrightsRequest();
req.RpcContext = "{}";
AlibabaLvmsBrandSyncbrandrightsRequest.BrandSyncRightsDtoDomain obj1 = new AlibabaLvmsBrandSyncbrandrightsRequest.BrandSyncRightsDtoDomain();
obj1.ExternalRightsId = "xxxxx";
obj1.OperateType = "xxxxx";
obj1.RightType = "xxxxx";
obj1.TradeName = "xxxxx";
obj1.ApplicationNumber = "xxxxx";
obj1.Applicant = "xxxxx";
obj1.InternationalClassification = "xxxxx";
AlibabaLvmsBrandSyncbrandrightsRequest.FileDtoDomain obj2 = new AlibabaLvmsBrandSyncbrandrightsRequest.FileDtoDomain();
obj2.Url = "xxxxx";
obj2.FileName = "xxxxx";
obj2.FileId = "xxxxx";
obj2.ValidStartDate = DateTime.Parse(2000-01-01 00:00:00");
obj2.ValidEndDate = DateTime.Parse(2000-01-01 00:00:00");
obj1.TrademarkLogo= obj2;
obj1.Nation = "xxxxx";
obj1.Title = "xxxxx";
obj1.LicenseNumber = "xxxxx";
obj1.CopyrightOwner = "xxxxx";
obj1.WorkCategory = "xxxxx";
obj1.ObtainRightsWay = "xxxxx";
obj1.DelegateSecurityIds = "Top,Pub";
req.BrandSyncRightsDTOS_ = obj1;
AlibabaLvmsBrandSyncbrandrightsResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaLvmsBrandSyncbrandrightsRequest;
$req->setRpcContext("{}");
$brand_sync_rights_d_t_o_s = new BrandSyncRightsDto;
$brand_sync_rights_d_t_o_s->external_rights_id="xxxxx";
$brand_sync_rights_d_t_o_s->operate_type="xxxxx";
$brand_sync_rights_d_t_o_s->right_type="xxxxx";
$brand_sync_rights_d_t_o_s->trade_name="xxxxx";
$brand_sync_rights_d_t_o_s->application_number="xxxxx";
$brand_sync_rights_d_t_o_s->applicant="xxxxx";
$brand_sync_rights_d_t_o_s->international_classification="xxxxx";
$trademark_logo = new FileDto;
$trademark_logo->url="xxxxx";
$trademark_logo->file_name="xxxxx";
$trademark_logo->file_id="xxxxx";
$trademark_logo->valid_start_date="2000-01-01 00:00:00";
$trademark_logo->valid_end_date="2000-01-01 00:00:00";
$brand_sync_rights_d_t_o_s->trademark_logo = $trademark_logo;
$brand_sync_rights_d_t_o_s->nation="xxxxx";
$brand_sync_rights_d_t_o_s->title="xxxxx";
$brand_sync_rights_d_t_o_s->license_number="xxxxx";
$brand_sync_rights_d_t_o_s->copyright_owner="xxxxx";
$brand_sync_rights_d_t_o_s->work_category="xxxxx";
$brand_sync_rights_d_t_o_s->obtain_rights_way="xxxxx";
$brand_sync_rights_d_t_o_s->delegate_security_ids="Top,Pub";
$req->setBrandSyncRightsDTOS(json_encode($brand_sync_rights_d_t_o_s));
$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.lvms.brand.syncbrandrights' \
-d 'partner_id=apidoc' \
-d 'sign=E07125AB2AE0C252A55988341478653D' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-14+20%3A35%3A03' \
-d 'v=2.0' \
-d 'brand_sync_rights_d_t_o_s=null' \
-d 'rpc_context=%7B%7D'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaLvmsBrandSyncbrandrightsRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.rpc_context="{}"
req.brand_sync_rights_d_t_o_s="数据结构示例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,"alibaba.lvms.brand.syncbrandrights");
add_param(pRequest,"rpc_context","{}");
add_param(pRequest,"brand_sync_rights_d_t_o_s","数据结构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.lvms.brand.syncbrandrights', {
'rpc_context':'{}',
'brand_sync_rights_d_t_o_s':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})