TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
LegalbaldrWorkorderReportformInRequest req = new LegalbaldrWorkorderReportformInRequest();
LegalbaldrWorkorderReportformInRequest.ReportFormRequest obj1 = new LegalbaldrWorkorderReportformInRequest.ReportFormRequest();
List<LegalbaldrWorkorderReportformInRequest.ReportFormItem> list3 = new ArrayList<LegalbaldrWorkorderReportformInRequest.ReportFormItem>();
LegalbaldrWorkorderReportformInRequest.ReportFormItem obj4 = new LegalbaldrWorkorderReportformInRequest.ReportFormItem();
list3.add(obj4);
obj4.setGWorkId(2322L);
LegalbaldrWorkorderReportformInRequest.Attachment obj6 = new LegalbaldrWorkorderReportformInRequest.Attachment();
obj6.setUrl("http://hjklji2.xxxx.download");
obj6.setFileName("投诉举报单-2023.png");
list5.setAttachment(obj6);
obj4.setCaseType("CHECK");
obj1.setAttachmentWrapList(list3);
obj1.setProductCode("baldr");
obj1.setSupervisionOperator("张三");
obj1.setTenantId("80000");
obj1.setHandleDate(StringUtils.parseDateTime("2023-01-01 01:01:01"));
obj1.setSupervisionOrgName("余杭区市场监督管理局");
req.setReportFormRequest(obj1);
LegalbaldrWorkorderReportformInResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
LegalbaldrWorkorderReportformInRequest req = new LegalbaldrWorkorderReportformInRequest();
LegalbaldrWorkorderReportformInRequest.ReportFormRequestDomain obj1 = new LegalbaldrWorkorderReportformInRequest.ReportFormRequestDomain();
List<LegalbaldrWorkorderReportformInRequest.ReportFormItemDomain> list3 = new List<LegalbaldrWorkorderReportformInRequest.ReportFormItemDomain>();
LegalbaldrWorkorderReportformInRequest.ReportFormItemDomain obj4 = new LegalbaldrWorkorderReportformInRequest.ReportFormItemDomain();
list3.Add(obj4);
obj4.GWorkId = 2322L;
LegalbaldrWorkorderReportformInRequest.AttachmentDomain obj5 = new LegalbaldrWorkorderReportformInRequest.AttachmentDomain();
obj5.Url = "http://hjklji2.xxxx.download";
obj5.FileName = "投诉举报单-2023.png";
obj4.Attachment= obj5;
obj4.CaseType = "CHECK";
obj1.AttachmentWrapList= list3;
obj1.ProductCode = "baldr";
obj1.SupervisionOperator = "张三";
obj1.TenantId = "80000";
obj1.HandleDate = DateTime.Parse(2023-01-01 01:01:01");
obj1.SupervisionOrgName = "余杭区市场监督管理局";
req.ReportFormRequest_ = obj1;
LegalbaldrWorkorderReportformInResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new LegalbaldrWorkorderReportformInRequest;
$report_form_request = new ReportFormRequest;
$attachment_wrap_list = new ReportFormItem;
$attachment_wrap_list->g_work_id="2322";
$attachment = new Attachment;
$attachment->url="http://hjklji2.xxxx.download";
$attachment->file_name="投诉举报单-2023.png";
$attachment_wrap_list->attachment = $attachment;
$attachment_wrap_list->case_type="CHECK";
$report_form_request->attachment_wrap_list = $attachment_wrap_list;
$report_form_request->product_code="baldr";
$report_form_request->supervision_operator="张三";
$report_form_request->tenant_id="80000";
$report_form_request->handle_date="2023-01-01 01:01:01";
$report_form_request->supervision_org_name="余杭区市场监督管理局";
$req->setReportFormRequest(json_encode($report_form_request));
$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.legalbaldr.workorder.reportform.in' \
-d 'partner_id=apidoc' \
-d 'sign=6F176592AD956B8B9A09E012E9C978D3' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-06-10+17%3A22%3A43' \
-d 'v=2.0' \
-d 'report_form_request=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.LegalbaldrWorkorderReportformInRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.report_form_request="数据结构示例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,"taobao.legalbaldr.workorder.reportform.in");
add_param(pRequest,"report_form_request","数据结构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.legalbaldr.workorder.reportform.in', {
'report_form_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})