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