TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaIbWorkcoreCompanyUpdatectcompanyRequest req = new AlibabaIbWorkcoreCompanyUpdatectcompanyRequest();
AlibabaIbWorkcoreCompanyUpdatectcompanyRequest.WorkBenchContext obj1 = new AlibabaIbWorkcoreCompanyUpdatectcompanyRequest.WorkBenchContext();
obj1.setCampusId(1L);
obj1.setSystemId("1");
obj1.setUserId(1L);
req.setWorkBenchContext(obj1);
AlibabaIbWorkcoreCompanyUpdatectcompanyRequest.CertificationCompanyInfoDto obj2 = new AlibabaIbWorkcoreCompanyUpdatectcompanyRequest.CertificationCompanyInfoDto();
obj2.setLegalPersonIdBackIcon("xxxx.xx/xx.jpg");
obj2.setContactAddress("XX市XX区XX路XX号");
obj2.setCampusId(1L);
obj2.setCateringLicenseIcon("xxxx.xx/xx.jpg");
obj2.setCompanyId(1L);
obj2.setRegeditUserId(123L);
obj2.setInvoiceBank("xx银行");
obj2.setLegalPersonIdIcon("xxxx.xx/xx.jpg");
obj2.setLicenseIcon("xxxx.xx/xx.jpg");
obj2.setIsIdentify("y");
obj2.setLegalPersonId("123");
obj2.setBrandAuthorizationIcon("xxxx.xx/xx.jpg");
obj2.setIsDeleted("n");
obj2.setLicenseExpireTime(StringUtils.parseDateTime("2018-01-18 18:14:22"));
obj2.setInvoiceRecipients("李四");
obj2.setContactEmail("xx@xx.xx");
obj2.setProvice("浙江省");
obj2.setGmtCreate(StringUtils.parseDateTime("2018-01-18 18:13:07"));
obj2.setContactPhone("1134354646");
obj2.setLogoPaperIcon("xxxx.xx/xx.jpg");
obj2.setName("阿里巴巴");
obj2.setInvoiceTaxCode("1213");
obj2.setInvoicePhone("1323");
obj2.setBusinessLicense("121");
obj2.setArea("余杭区");
obj2.setInvoiceCompanyName("XX公司");
obj2.setInvoiceBankCard("123");
obj2.setCity("杭州");
obj2.setLegalPerson("展示");
obj2.setCorporateAccount("123");
obj2.setLegalPersonIdType("1");
obj2.setRegisteredCapital("伍佰亿人民币");
obj2.setContact("展示");
obj2.setLegalPersonMobile("121313");
obj2.setGroupCode("121333");
obj2.setBankOfDeposit("XX银行XX支行");
obj2.setInvoiceAddress("XX市XX路XX号");
obj2.setLegalPersonPlace("XX市");
obj2.setScope("软件相关");
obj2.setGmtModified(StringUtils.parseDateTime("2018-01-18 18:06:50"));
req.setCertificationCompanyInfoDto(obj2);
AlibabaIbWorkcoreCompanyUpdatectcompanyResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaIbWorkcoreCompanyUpdatectcompanyRequest req = new AlibabaIbWorkcoreCompanyUpdatectcompanyRequest();
AlibabaIbWorkcoreCompanyUpdatectcompanyRequest.WorkBenchContextDomain obj1 = new AlibabaIbWorkcoreCompanyUpdatectcompanyRequest.WorkBenchContextDomain();
obj1.CampusId = 1L;
obj1.SystemId = "1";
obj1.UserId = 1L;
req.WorkBenchContext_ = obj1;
AlibabaIbWorkcoreCompanyUpdatectcompanyRequest.CertificationCompanyInfoDtoDomain obj2 = new AlibabaIbWorkcoreCompanyUpdatectcompanyRequest.CertificationCompanyInfoDtoDomain();
obj2.LegalPersonIdBackIcon = "xxxx.xx/xx.jpg";
obj2.ContactAddress = "XX市XX区XX路XX号";
obj2.CampusId = 1L;
obj2.CateringLicenseIcon = "xxxx.xx/xx.jpg";
obj2.CompanyId = 1L;
obj2.RegeditUserId = 123L;
obj2.InvoiceBank = "xx银行";
obj2.LegalPersonIdIcon = "xxxx.xx/xx.jpg";
obj2.LicenseIcon = "xxxx.xx/xx.jpg";
obj2.IsIdentify = "y";
obj2.LegalPersonId = "123";
obj2.BrandAuthorizationIcon = "xxxx.xx/xx.jpg";
obj2.IsDeleted = "n";
obj2.LicenseExpireTime = DateTime.Parse(2018-01-18 18:14:22");
obj2.InvoiceRecipients = "李四";
obj2.ContactEmail = "xx@xx.xx";
obj2.Provice = "浙江省";
obj2.GmtCreate = DateTime.Parse(2018-01-18 18:13:07");
obj2.ContactPhone = "1134354646";
obj2.LogoPaperIcon = "xxxx.xx/xx.jpg";
obj2.Name = "阿里巴巴";
obj2.InvoiceTaxCode = "1213";
obj2.InvoicePhone = "1323";
obj2.BusinessLicense = "121";
obj2.Area = "余杭区";
obj2.InvoiceCompanyName = "XX公司";
obj2.InvoiceBankCard = "123";
obj2.City = "杭州";
obj2.LegalPerson = "展示";
obj2.CorporateAccount = "123";
obj2.LegalPersonIdType = "1";
obj2.RegisteredCapital = "伍佰亿人民币";
obj2.Contact = "展示";
obj2.LegalPersonMobile = "121313";
obj2.GroupCode = "121333";
obj2.BankOfDeposit = "XX银行XX支行";
obj2.InvoiceAddress = "XX市XX路XX号";
obj2.LegalPersonPlace = "XX市";
obj2.Scope = "软件相关";
obj2.GmtModified = DateTime.Parse(2018-01-18 18:06:50");
req.CertificationCompanyInfoDto_ = obj2;
AlibabaIbWorkcoreCompanyUpdatectcompanyResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaIbWorkcoreCompanyUpdatectcompanyRequest;
$work_bench_context = new WorkBenchContext;
$work_bench_context->campus_id="1";
$work_bench_context->system_id="1";
$work_bench_context->user_id="1";
$req->setWorkBenchContext(json_encode($work_bench_context));
$certification_company_info_dto = new CertificationCompanyInfoDto;
$certification_company_info_dto->legal_person_id_back_icon="xxxx.xx/xx.jpg";
$certification_company_info_dto->contact_address="XX市XX区XX路XX号";
$certification_company_info_dto->campus_id="1";
$certification_company_info_dto->catering_license_icon="xxxx.xx/xx.jpg";
$certification_company_info_dto->company_id="1";
$certification_company_info_dto->regedit_user_id="123";
$certification_company_info_dto->invoice_bank="xx银行";
$certification_company_info_dto->legal_person_id_icon="xxxx.xx/xx.jpg";
$certification_company_info_dto->license_icon="xxxx.xx/xx.jpg";
$certification_company_info_dto->is_identify="y";
$certification_company_info_dto->legal_person_id="123";
$certification_company_info_dto->brand_authorization_icon="xxxx.xx/xx.jpg";
$certification_company_info_dto->is_deleted="n";
$certification_company_info_dto->license_expire_time="2018-01-18 18:14:22";
$certification_company_info_dto->invoice_recipients="李四";
$certification_company_info_dto->contact_email="xx@xx.xx";
$certification_company_info_dto->provice="浙江省";
$certification_company_info_dto->gmt_create="2018-01-18 18:13:07";
$certification_company_info_dto->contact_phone="1134354646";
$certification_company_info_dto->logo_paper_icon="xxxx.xx/xx.jpg";
$certification_company_info_dto->name="阿里巴巴";
$certification_company_info_dto->invoice_tax_code="1213";
$certification_company_info_dto->invoice_phone="1323";
$certification_company_info_dto->business_license="121";
$certification_company_info_dto->area="余杭区";
$certification_company_info_dto->invoice_company_name="XX公司";
$certification_company_info_dto->invoice_bank_card="123";
$certification_company_info_dto->city="杭州";
$certification_company_info_dto->legal_person="展示";
$certification_company_info_dto->corporate_account="123";
$certification_company_info_dto->legal_person_id_type="1";
$certification_company_info_dto->registered_capital="伍佰亿人民币";
$certification_company_info_dto->contact="展示";
$certification_company_info_dto->legal_person_mobile="121313";
$certification_company_info_dto->group_code="121333";
$certification_company_info_dto->bank_of_deposit="XX银行XX支行";
$certification_company_info_dto->invoice_address="XX市XX路XX号";
$certification_company_info_dto->legal_person_place="XX市";
$certification_company_info_dto->scope="软件相关";
$certification_company_info_dto->gmt_modified="2018-01-18 18:06:50";
$req->setCertificationCompanyInfoDto(json_encode($certification_company_info_dto));
$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.ib.workcore.company.updatectcompany' \
-d 'partner_id=apidoc' \
-d 'sign=07FB0ADFBE0125AF3C7A2F976A427536' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-29+16%3A08%3A43' \
-d 'v=2.0' \
-d 'certification_company_info_dto=null' \
-d 'work_bench_context=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaIbWorkcoreCompanyUpdatectcompanyRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.work_bench_context=""
req.certification_company_info_dto=""
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.ib.workcore.company.updatectcompany");
add_param(pRequest,"work_bench_context","数据结构JSON示例");
add_param(pRequest,"certification_company_info_dto","数据结构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.ib.workcore.company.updatectcompany', {
'work_bench_context':'数据结构JSON示例',
'certification_company_info_dto':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})