TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
CobrasellerCaseinvestInvestRequest req = new CobrasellerCaseinvestInvestRequest();
CobrasellerCaseinvestInvestRequest.InvestRecordDo obj1 = new CobrasellerCaseinvestInvestRequest.InvestRecordDo();
obj1.setCaseId("111");
obj1.setCreaterConfirmEvidenceId(10111L);
List<CobrasellerCaseinvestInvestRequest.InvestRecordItemDo> list3 = new ArrayList<CobrasellerCaseinvestInvestRequest.InvestRecordItemDo>();
CobrasellerCaseinvestInvestRequest.InvestRecordItemDo obj4 = new CobrasellerCaseinvestInvestRequest.InvestRecordItemDo();
list3.add(obj4);
obj4.setBeginDate("2017-01-01 00:00:00");
obj4.setEndDate("2018-03-01 00:00:00");
obj4.setItemId(564553455539L);
obj4.setItemName("测试商品名称");
obj4.setTotalAmount("11023.22");
obj4.setTotalDays("95");
obj4.setTotalNum("110");
obj1.setItemList(list3);
CobrasellerCaseinvestInvestRequest.InvestRecordMainInfoDo obj5 = new CobrasellerCaseinvestInvestRequest.InvestRecordMainInfoDo();
obj5.setAddress("阿里巴巴西溪园区");
obj5.setEntBusScope("全部商品");
obj5.setEntCorpName("巴巴");
obj5.setIdCardNo("110110100101110");
obj5.setName("阿里巴巴测试");
obj5.setPhone("110");
obj5.setPictureOssKey1("cobra_seller_info1");
obj5.setPictureOssKey2("cobra_seller_info2");
obj5.setPictureOssKey3("cobra_seller_info3");
obj5.setRegCapital("110");
obj5.setSellerType(2L);
obj5.setZipCode("330110");
obj1.setOriginalMainInfo(obj5);
List<CobrasellerCaseinvestInvestRequest.InvestRecordPersonDo> list7 = new ArrayList<CobrasellerCaseinvestInvestRequest.InvestRecordPersonDo>();
CobrasellerCaseinvestInvestRequest.InvestRecordPersonDo obj8 = new CobrasellerCaseinvestInvestRequest.InvestRecordPersonDo();
list7.add(obj8);
obj8.setIdNo("江汀");
obj8.setName("11023");
obj1.setPersonList(list7);
obj1.setDetailAction("不正当竞争");
obj1.setDetailDes("XXXX在2018-04-03有不正当竞争行为,请确认");
obj1.setAttachmentOssKey("cobra_seller_info3");
obj1.setDetailExplain("你页面有“最”字");
List<CobrasellerCaseinvestInvestRequest.InvestRecordConfirmDo> list10 = new ArrayList<CobrasellerCaseinvestInvestRequest.InvestRecordConfirmDo>();
CobrasellerCaseinvestInvestRequest.InvestRecordConfirmDo obj11 = new CobrasellerCaseinvestInvestRequest.InvestRecordConfirmDo();
list10.add(obj11);
obj11.setQuestion("哪些你有疑问?");
obj11.setId(12L);
obj1.setQuestionList(list10);
obj1.setUnitFrom("余杭工商局");
obj1.setDocName("浙-工商-案源-字2018第J384号");
obj1.setCaseName("测试案件名");
obj1.setCaseSource("hz12315");
req.setParamInvestRecordDO(obj1);
CobrasellerCaseinvestInvestResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
CobrasellerCaseinvestInvestRequest req = new CobrasellerCaseinvestInvestRequest();
CobrasellerCaseinvestInvestRequest.InvestRecordDoDomain obj1 = new CobrasellerCaseinvestInvestRequest.InvestRecordDoDomain();
obj1.CaseId = "111";
obj1.CreaterConfirmEvidenceId = 10111L;
List<CobrasellerCaseinvestInvestRequest.InvestRecordItemDoDomain> list3 = new List<CobrasellerCaseinvestInvestRequest.InvestRecordItemDoDomain>();
CobrasellerCaseinvestInvestRequest.InvestRecordItemDoDomain obj4 = new CobrasellerCaseinvestInvestRequest.InvestRecordItemDoDomain();
list3.Add(obj4);
obj4.BeginDate = "2017-01-01 00:00:00";
obj4.EndDate = "2018-03-01 00:00:00";
obj4.ItemId = 564553455539L;
obj4.ItemName = "测试商品名称";
obj4.TotalAmount = "11023.22";
obj4.TotalDays = "95";
obj4.TotalNum = "110";
obj1.ItemList= list3;
CobrasellerCaseinvestInvestRequest.InvestRecordMainInfoDoDomain obj5 = new CobrasellerCaseinvestInvestRequest.InvestRecordMainInfoDoDomain();
obj5.Address = "阿里巴巴西溪园区";
obj5.EntBusScope = "全部商品";
obj5.EntCorpName = "巴巴";
obj5.IdCardNo = "110110100101110";
obj5.Name = "阿里巴巴测试";
obj5.Phone = "110";
obj5.PictureOssKey1 = "cobra_seller_info1";
obj5.PictureOssKey2 = "cobra_seller_info2";
obj5.PictureOssKey3 = "cobra_seller_info3";
obj5.RegCapital = "110";
obj5.SellerType = 2L;
obj5.ZipCode = "330110";
obj1.OriginalMainInfo= obj5;
List<CobrasellerCaseinvestInvestRequest.InvestRecordPersonDoDomain> list7 = new List<CobrasellerCaseinvestInvestRequest.InvestRecordPersonDoDomain>();
CobrasellerCaseinvestInvestRequest.InvestRecordPersonDoDomain obj8 = new CobrasellerCaseinvestInvestRequest.InvestRecordPersonDoDomain();
list7.Add(obj8);
obj8.IdNo = "江汀";
obj8.Name = "11023";
obj1.PersonList= list7;
obj1.DetailAction = "不正当竞争";
obj1.DetailDes = "XXXX在2018-04-03有不正当竞争行为,请确认";
obj1.AttachmentOssKey = "cobra_seller_info3";
obj1.DetailExplain = "你页面有“最”字";
List<CobrasellerCaseinvestInvestRequest.InvestRecordConfirmDoDomain> list10 = new List<CobrasellerCaseinvestInvestRequest.InvestRecordConfirmDoDomain>();
CobrasellerCaseinvestInvestRequest.InvestRecordConfirmDoDomain obj11 = new CobrasellerCaseinvestInvestRequest.InvestRecordConfirmDoDomain();
list10.Add(obj11);
obj11.Question = "哪些你有疑问?";
obj11.Id = 12L;
obj1.QuestionList= list10;
obj1.UnitFrom = "余杭工商局";
obj1.DocName = "浙-工商-案源-字2018第J384号";
obj1.CaseName = "测试案件名";
obj1.CaseSource = "hz12315";
req.ParamInvestRecordDO_ = obj1;
CobrasellerCaseinvestInvestResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new CobrasellerCaseinvestInvestRequest;
$param_invest_record_d_o = new InvestRecordDo;
$param_invest_record_d_o->case_id="111";
$param_invest_record_d_o->creater_confirm_evidence_id="10111";
$item_list = new InvestRecordItemDo;
$item_list->begin_date="2017-01-01 00:00:00";
$item_list->end_date="2018-03-01 00:00:00";
$item_list->item_id="564553455539";
$item_list->item_name="测试商品名称";
$item_list->total_amount="11023.22";
$item_list->total_days="95";
$item_list->total_num="110";
$param_invest_record_d_o->item_list = $item_list;
$original_main_info = new InvestRecordMainInfoDo;
$original_main_info->address="阿里巴巴西溪园区";
$original_main_info->ent_bus_scope="全部商品";
$original_main_info->ent_corp_name="巴巴";
$original_main_info->id_card_no="110110100101110";
$original_main_info->name="阿里巴巴测试";
$original_main_info->phone="110";
$original_main_info->picture_oss_key1="cobra_seller_info1";
$original_main_info->picture_oss_key2="cobra_seller_info2";
$original_main_info->picture_oss_key3="cobra_seller_info3";
$original_main_info->reg_capital="110";
$original_main_info->seller_type="2";
$original_main_info->zip_code="330110";
$param_invest_record_d_o->original_main_info = $original_main_info;
$person_list = new InvestRecordPersonDo;
$person_list->id_no="江汀";
$person_list->name="11023";
$param_invest_record_d_o->person_list = $person_list;
$param_invest_record_d_o->detail_action="不正当竞争";
$param_invest_record_d_o->detail_des="XXXX在2018-04-03有不正当竞争行为,请确认";
$param_invest_record_d_o->attachment_oss_key="cobra_seller_info3";
$param_invest_record_d_o->detail_explain="你页面有“最”字";
$question_list = new InvestRecordConfirmDo;
$question_list->question="哪些你有疑问?";
$question_list->id="12";
$param_invest_record_d_o->question_list = $question_list;
$param_invest_record_d_o->unit_from="余杭工商局";
$param_invest_record_d_o->doc_name="浙-工商-案源-字2018第J384号";
$param_invest_record_d_o->case_name="测试案件名";
$param_invest_record_d_o->case_source="hz12315";
$req->setParamInvestRecordDO(json_encode($param_invest_record_d_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=taobao.cobraseller.caseinvest.invest' \
-d 'partner_id=apidoc' \
-d 'sign=B0A57A4C766BD338A1763F713C101A30' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-23+17%3A37%3A44' \
-d 'v=2.0' \
-d 'param_invest_record_d_o=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.CobrasellerCaseinvestInvestRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.param_invest_record_d_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,"taobao.cobraseller.caseinvest.invest");
add_param(pRequest,"param_invest_record_d_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('taobao.cobraseller.caseinvest.invest', {
'param_invest_record_d_o':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})