TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaLvmsCopyrightRelationdelegateRequest req = new AlibabaLvmsCopyrightRelationdelegateRequest();
req.setRpcContextString("{}");
AlibabaLvmsCopyrightRelationdelegateRequest.CopyrightTaskDto obj1 = new AlibabaLvmsCopyrightRelationdelegateRequest.CopyrightTaskDto();
obj1.setPolicyName("xxxxx");
obj1.setPolicyId("xxxxx");
obj1.setPolicyNumber("xxxxx");
obj1.setPolicyStatus("xxxxx");
obj1.setPolicyType("xxxxx");
obj1.setMonitorStartTime(StringUtils.parseDateTime("2000-01-01 00:00:00"));
obj1.setMonitorEndTime(StringUtils.parseDateTime("2000-01-01 00:00:00"));
obj1.setSendWarnMail(false);
obj1.setWarnMailSendExcludePlatform("Top,Pub");
obj1.setWarnMaliSendTime("xxxxx");
obj1.setWarnMailShieldWord("xxxxx");
obj1.setSerialCode("xxxxx");
obj1.setCopyrightMeans("Top,Pub");
obj1.setRemark("xxxxx");
obj1.setSubmitter("xxxxx");
obj1.setInvokeTimestamp(StringUtils.parseDateTime("2000-01-01 00:00:00"));
obj1.setSafeguardLevel("xxxxx");
obj1.setSafeguardArea("xxxxx");
List<AlibabaLvmsCopyrightRelationdelegateRequest.WorksWhitelistRelationDto> list3 = new ArrayList<AlibabaLvmsCopyrightRelationdelegateRequest.WorksWhitelistRelationDto>();
AlibabaLvmsCopyrightRelationdelegateRequest.WorksWhitelistRelationDto obj4 = new AlibabaLvmsCopyrightRelationdelegateRequest.WorksWhitelistRelationDto();
list3.add(obj4);
obj4.setWhitelistId("xxxxx");
obj4.setWorksId("xxxxx");
obj1.setWorksWhitelistRelations(list3);
List<AlibabaLvmsCopyrightRelationdelegateRequest.WorksDto> list6 = new ArrayList<AlibabaLvmsCopyrightRelationdelegateRequest.WorksDto>();
AlibabaLvmsCopyrightRelationdelegateRequest.WorksDto obj7 = new AlibabaLvmsCopyrightRelationdelegateRequest.WorksDto();
list6.add(obj7);
obj7.setName("xxxxx");
obj7.setDirector("xxxxx");
obj7.setActor("xxxxx");
obj7.setWorksClassify("xxxxx");
obj7.setEpisode("xxxxx");
obj7.setOrigin("xxxxx");
obj7.setProductionYear(10L);
obj7.setPlatformOnlineTime(StringUtils.parseDateTime("2000-01-01 00:00:00"));
obj7.setAuthorizedTechnologyEquipmentSide("Top,Pub");
obj7.setAuthorizedTechnologyEquipmentSideExclude("Top,Pub");
obj7.setAuthorizedArea("Top,Pub");
obj7.setAuthorizedAreaExclude("Top,Pub");
obj7.setHookupParty("xxxxx");
obj7.setExternalWorksId("xxxxx");
obj7.setRightFrom("Top,Pub");
obj7.setExternalWorksCustomerSubjectId("xxxxx");
List<AlibabaLvmsCopyrightRelationdelegateRequest.FileDto> list10 = new ArrayList<AlibabaLvmsCopyrightRelationdelegateRequest.FileDto>();
AlibabaLvmsCopyrightRelationdelegateRequest.FileDto obj11 = new AlibabaLvmsCopyrightRelationdelegateRequest.FileDto();
list10.add(obj11);
obj11.setUrl("xxxxx");
obj11.setFileName("xxxxx");
obj11.setFileId("xxxxx");
obj11.setValidStartDate(StringUtils.parseDateTime("2000-01-01 00:00:00"));
obj11.setValidEndDate(StringUtils.parseDateTime("2000-01-01 00:00:00"));
list8.setAttachments(list10);
obj1.setWorks(list6);
List<AlibabaLvmsCopyrightRelationdelegateRequest.WhitelistDto> list13 = new ArrayList<AlibabaLvmsCopyrightRelationdelegateRequest.WhitelistDto>();
AlibabaLvmsCopyrightRelationdelegateRequest.WhitelistDto obj14 = new AlibabaLvmsCopyrightRelationdelegateRequest.WhitelistDto();
list13.add(obj14);
obj14.setWhiteName("xxxxx");
obj14.setExternalWhitelistId("xxxxx");
List<AlibabaLvmsCopyrightRelationdelegateRequest.WhitelistDetailDto> list17 = new ArrayList<AlibabaLvmsCopyrightRelationdelegateRequest.WhitelistDetailDto>();
AlibabaLvmsCopyrightRelationdelegateRequest.WhitelistDetailDto obj18 = new AlibabaLvmsCopyrightRelationdelegateRequest.WhitelistDetailDto();
list17.add(obj18);
obj18.setUrlType("xxxxx");
obj18.setAccountUrl("xxxxx");
obj18.setPublishAccountId("xxxxx");
obj18.setPublishAccountName("xxxxx");
obj18.setCooperateStartTime(StringUtils.parseDateTime("2000-01-01 00:00:00"));
obj18.setCooperateEndTime(StringUtils.parseDateTime("2000-01-01 00:00:00"));
obj18.setPlatformCode("xxxxx");
obj18.setExternalWhitelistDetailId("xxxxx");
obj18.setOperateType("xxxxx");
list15.setDetailDTOS(list17);
obj1.setWhitelists(list13);
List<AlibabaLvmsCopyrightRelationdelegateRequest.StrategyItemDto> list20 = new ArrayList<AlibabaLvmsCopyrightRelationdelegateRequest.StrategyItemDto>();
AlibabaLvmsCopyrightRelationdelegateRequest.StrategyItemDto obj21 = new AlibabaLvmsCopyrightRelationdelegateRequest.StrategyItemDto();
list20.add(obj21);
obj21.setCooperateType("xxxxx");
obj21.setPlatformCode("Top,Pub");
obj21.setTech("Top,Pub");
obj21.setQtMonitorCondition("xxxxx");
obj21.setQtMonitorLength("xxxxx");
obj21.setQtProcessCondition("xxxxx");
obj21.setQtProcessLength("xxxxx");
obj21.setEcMonitorCondition("xxxxx");
obj21.setEcMonitorLength("xxxxx");
obj21.setEcProcessCondition("xxxxx");
obj21.setEcProcessLength("xxxxx");
obj21.setExternalMonitorId("xxxxx");
obj21.setPlatformFilterType("xxxxx");
obj1.setStrategyItemDTOS(list20);
obj1.setChangeLogs("Top,Pub");
req.setCopyrightTaskDTO(obj1);
AlibabaLvmsCopyrightRelationdelegateResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaLvmsCopyrightRelationdelegateRequest req = new AlibabaLvmsCopyrightRelationdelegateRequest();
req.RpcContext = "{}";
AlibabaLvmsCopyrightRelationdelegateRequest.CopyrightTaskDtoDomain obj1 = new AlibabaLvmsCopyrightRelationdelegateRequest.CopyrightTaskDtoDomain();
obj1.PolicyName = "xxxxx";
obj1.PolicyId = "xxxxx";
obj1.PolicyNumber = "xxxxx";
obj1.PolicyStatus = "xxxxx";
obj1.PolicyType = "xxxxx";
obj1.MonitorStartTime = DateTime.Parse(2000-01-01 00:00:00");
obj1.MonitorEndTime = DateTime.Parse(2000-01-01 00:00:00");
obj1.SendWarnMail = false;
obj1.WarnMailSendExcludePlatform = "Top,Pub";
obj1.WarnMaliSendTime = "xxxxx";
obj1.WarnMailShieldWord = "xxxxx";
obj1.SerialCode = "xxxxx";
obj1.CopyrightMeans = "Top,Pub";
obj1.Remark = "xxxxx";
obj1.Submitter = "xxxxx";
obj1.InvokeTimestamp = DateTime.Parse(2000-01-01 00:00:00");
obj1.SafeguardLevel = "xxxxx";
obj1.SafeguardArea = "xxxxx";
List<AlibabaLvmsCopyrightRelationdelegateRequest.WorksWhitelistRelationDtoDomain> list3 = new List<AlibabaLvmsCopyrightRelationdelegateRequest.WorksWhitelistRelationDtoDomain>();
AlibabaLvmsCopyrightRelationdelegateRequest.WorksWhitelistRelationDtoDomain obj4 = new AlibabaLvmsCopyrightRelationdelegateRequest.WorksWhitelistRelationDtoDomain();
list3.Add(obj4);
obj4.WhitelistId = "xxxxx";
obj4.WorksId = "xxxxx";
obj1.WorksWhitelistRelations= list3;
List<AlibabaLvmsCopyrightRelationdelegateRequest.WorksDtoDomain> list6 = new List<AlibabaLvmsCopyrightRelationdelegateRequest.WorksDtoDomain>();
AlibabaLvmsCopyrightRelationdelegateRequest.WorksDtoDomain obj7 = new AlibabaLvmsCopyrightRelationdelegateRequest.WorksDtoDomain();
list6.Add(obj7);
obj7.Name = "xxxxx";
obj7.Director = "xxxxx";
obj7.Actor = "xxxxx";
obj7.WorksClassify = "xxxxx";
obj7.Episode = "xxxxx";
obj7.Origin = "xxxxx";
obj7.ProductionYear = 10L;
obj7.PlatformOnlineTime = DateTime.Parse(2000-01-01 00:00:00");
obj7.AuthorizedTechnologyEquipmentSide = "Top,Pub";
obj7.AuthorizedTechnologyEquipmentSideExclude = "Top,Pub";
obj7.AuthorizedArea = "Top,Pub";
obj7.AuthorizedAreaExclude = "Top,Pub";
obj7.HookupParty = "xxxxx";
obj7.ExternalWorksId = "xxxxx";
obj7.RightFrom = "Top,Pub";
obj7.ExternalWorksCustomerSubjectId = "xxxxx";
List<AlibabaLvmsCopyrightRelationdelegateRequest.FileDtoDomain> list9 = new List<AlibabaLvmsCopyrightRelationdelegateRequest.FileDtoDomain>();
AlibabaLvmsCopyrightRelationdelegateRequest.FileDtoDomain obj10 = new AlibabaLvmsCopyrightRelationdelegateRequest.FileDtoDomain();
list9.Add(obj10);
obj10.Url = "xxxxx";
obj10.FileName = "xxxxx";
obj10.FileId = "xxxxx";
obj10.ValidStartDate = DateTime.Parse(2000-01-01 00:00:00");
obj10.ValidEndDate = DateTime.Parse(2000-01-01 00:00:00");
obj7.Attachments= list9;
obj1.Works= list6;
List<AlibabaLvmsCopyrightRelationdelegateRequest.WhitelistDtoDomain> list12 = new List<AlibabaLvmsCopyrightRelationdelegateRequest.WhitelistDtoDomain>();
AlibabaLvmsCopyrightRelationdelegateRequest.WhitelistDtoDomain obj13 = new AlibabaLvmsCopyrightRelationdelegateRequest.WhitelistDtoDomain();
list12.Add(obj13);
obj13.WhiteName = "xxxxx";
obj13.ExternalWhitelistId = "xxxxx";
List<AlibabaLvmsCopyrightRelationdelegateRequest.WhitelistDetailDtoDomain> list15 = new List<AlibabaLvmsCopyrightRelationdelegateRequest.WhitelistDetailDtoDomain>();
AlibabaLvmsCopyrightRelationdelegateRequest.WhitelistDetailDtoDomain obj16 = new AlibabaLvmsCopyrightRelationdelegateRequest.WhitelistDetailDtoDomain();
list15.Add(obj16);
obj16.UrlType = "xxxxx";
obj16.AccountUrl = "xxxxx";
obj16.PublishAccountId = "xxxxx";
obj16.PublishAccountName = "xxxxx";
obj16.CooperateStartTime = DateTime.Parse(2000-01-01 00:00:00");
obj16.CooperateEndTime = DateTime.Parse(2000-01-01 00:00:00");
obj16.PlatformCode = "xxxxx";
obj16.ExternalWhitelistDetailId = "xxxxx";
obj16.OperateType = "xxxxx";
obj13.DetailDTOS= list15;
obj1.Whitelists= list12;
List<AlibabaLvmsCopyrightRelationdelegateRequest.StrategyItemDtoDomain> list18 = new List<AlibabaLvmsCopyrightRelationdelegateRequest.StrategyItemDtoDomain>();
AlibabaLvmsCopyrightRelationdelegateRequest.StrategyItemDtoDomain obj19 = new AlibabaLvmsCopyrightRelationdelegateRequest.StrategyItemDtoDomain();
list18.Add(obj19);
obj19.CooperateType = "xxxxx";
obj19.PlatformCode = "Top,Pub";
obj19.Tech = "Top,Pub";
obj19.QtMonitorCondition = "xxxxx";
obj19.QtMonitorLength = "xxxxx";
obj19.QtProcessCondition = "xxxxx";
obj19.QtProcessLength = "xxxxx";
obj19.EcMonitorCondition = "xxxxx";
obj19.EcMonitorLength = "xxxxx";
obj19.EcProcessCondition = "xxxxx";
obj19.EcProcessLength = "xxxxx";
obj19.ExternalMonitorId = "xxxxx";
obj19.PlatformFilterType = "xxxxx";
obj1.StrategyItemDTOS= list18;
obj1.ChangeLogs = "Top,Pub";
req.CopyrightTaskDTO_ = obj1;
AlibabaLvmsCopyrightRelationdelegateResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaLvmsCopyrightRelationdelegateRequest;
$req->setRpcContext("{}");
$copyright_task_d_t_o = new CopyrightTaskDto;
$copyright_task_d_t_o->policy_name="xxxxx";
$copyright_task_d_t_o->policy_id="xxxxx";
$copyright_task_d_t_o->policy_number="xxxxx";
$copyright_task_d_t_o->policy_status="xxxxx";
$copyright_task_d_t_o->policy_type="xxxxx";
$copyright_task_d_t_o->monitor_start_time="2000-01-01 00:00:00";
$copyright_task_d_t_o->monitor_end_time="2000-01-01 00:00:00";
$copyright_task_d_t_o->send_warn_mail="false";
$copyright_task_d_t_o->warn_mail_send_exclude_platform="Top,Pub";
$copyright_task_d_t_o->warn_mali_send_time="xxxxx";
$copyright_task_d_t_o->warn_mail_shield_word="xxxxx";
$copyright_task_d_t_o->serial_code="xxxxx";
$copyright_task_d_t_o->copyright_means="Top,Pub";
$copyright_task_d_t_o->remark="xxxxx";
$copyright_task_d_t_o->submitter="xxxxx";
$copyright_task_d_t_o->invoke_timestamp="2000-01-01 00:00:00";
$copyright_task_d_t_o->safeguard_level="xxxxx";
$copyright_task_d_t_o->safeguard_area="xxxxx";
$works_whitelist_relations = new WorksWhitelistRelationDto;
$works_whitelist_relations->whitelist_id="xxxxx";
$works_whitelist_relations->works_id="xxxxx";
$copyright_task_d_t_o->works_whitelist_relations = $works_whitelist_relations;
$works = new WorksDto;
$works->name="xxxxx";
$works->director="xxxxx";
$works->actor="xxxxx";
$works->works_classify="xxxxx";
$works->episode="xxxxx";
$works->origin="xxxxx";
$works->production_year="10";
$works->platform_online_time="2000-01-01 00:00:00";
$works->authorized_technology_equipment_side="Top,Pub";
$works->authorized_technology_equipment_side_exclude="Top,Pub";
$works->authorized_area="Top,Pub";
$works->authorized_area_exclude="Top,Pub";
$works->hookup_party="xxxxx";
$works->external_works_id="xxxxx";
$works->right_from="Top,Pub";
$works->external_works_customer_subject_id="xxxxx";
$attachments = new FileDto;
$attachments->url="xxxxx";
$attachments->file_name="xxxxx";
$attachments->file_id="xxxxx";
$attachments->valid_start_date="2000-01-01 00:00:00";
$attachments->valid_end_date="2000-01-01 00:00:00";
$works->attachments = $attachments;
$copyright_task_d_t_o->works = $works;
$whitelists = new WhitelistDto;
$whitelists->white_name="xxxxx";
$whitelists->external_whitelist_id="xxxxx";
$detail_d_t_o_s = new WhitelistDetailDto;
$detail_d_t_o_s->url_type="xxxxx";
$detail_d_t_o_s->account_url="xxxxx";
$detail_d_t_o_s->publish_account_id="xxxxx";
$detail_d_t_o_s->publish_account_name="xxxxx";
$detail_d_t_o_s->cooperate_start_time="2000-01-01 00:00:00";
$detail_d_t_o_s->cooperate_end_time="2000-01-01 00:00:00";
$detail_d_t_o_s->platform_code="xxxxx";
$detail_d_t_o_s->external_whitelist_detail_id="xxxxx";
$detail_d_t_o_s->operate_type="xxxxx";
$whitelists->detail_d_t_o_s = $detail_d_t_o_s;
$copyright_task_d_t_o->whitelists = $whitelists;
$strategy_item_d_t_o_s = new StrategyItemDto;
$strategy_item_d_t_o_s->cooperate_type="xxxxx";
$strategy_item_d_t_o_s->platform_code="Top,Pub";
$strategy_item_d_t_o_s->tech="Top,Pub";
$strategy_item_d_t_o_s->qt_monitor_condition="xxxxx";
$strategy_item_d_t_o_s->qt_monitor_length="xxxxx";
$strategy_item_d_t_o_s->qt_process_condition="xxxxx";
$strategy_item_d_t_o_s->qt_process_length="xxxxx";
$strategy_item_d_t_o_s->ec_monitor_condition="xxxxx";
$strategy_item_d_t_o_s->ec_monitor_length="xxxxx";
$strategy_item_d_t_o_s->ec_process_condition="xxxxx";
$strategy_item_d_t_o_s->ec_process_length="xxxxx";
$strategy_item_d_t_o_s->external_monitor_id="xxxxx";
$strategy_item_d_t_o_s->platform_filter_type="xxxxx";
$copyright_task_d_t_o->strategy_item_d_t_o_s = $strategy_item_d_t_o_s;
$copyright_task_d_t_o->change_logs="Top,Pub";
$req->setCopyrightTaskDTO(json_encode($copyright_task_d_t_o));
$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.copyright.relationdelegate' \
-d 'partner_id=apidoc' \
-d 'sign=E0418D30C0BD3FC12771D6423FD34786' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-14+20%3A45%3A20' \
-d 'v=2.0' \
-d 'copyright_task_d_t_o=null' \
-d 'rpc_context=%7B%7D'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaLvmsCopyrightRelationdelegateRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.rpc_context="{}"
req.copyright_task_d_t_o=""
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.copyright.relationdelegate");
add_param(pRequest,"rpc_context","{}");
add_param(pRequest,"copyright_task_d_t_o","数据结构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.copyright.relationdelegate', {
'rpc_context':'{}',
'copyright_task_d_t_o':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})