TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaIdleRecycleInspectionReportRequest req = new AlibabaIdleRecycleInspectionReportRequest();
AlibabaIdleRecycleInspectionReportRequest.InspectionReport obj1 = new AlibabaIdleRecycleInspectionReportRequest.InspectionReport();
obj1.setPrice(4400L);
obj1.setErrMsg("错误信息描述");
obj1.setReport("{\"questions\":[{\"answers\":[{\"id\":105365}],\"id\":100002},{\"answers\":[{\"id\":106302}],\"id\":100004},{\"answers\":[{\"id\":100016}],\"id\":100006},{\"answers\":[{\"id\":248}],\"id\":70},{\"answers\":[{\"id\":62}],\"id\":26},{\"answers\":[{\"id\":78}],\"id\":32},{\"answers\":[{\"id\":253}],\"id\":10,\"tips\":{\"picUrl\":\"https://xxx.png;https://xxx2.png\"}},{\"answers\":[{\"id\":38}],\"id\":18},{\"answers\":[{\"id\":84}],\"id\":34},{\"answers\":[{\"id\":54},{\"id\":92}],\"id\":99999,\"tips\":{\"picUrl\":\"https://xxx.png;https://xxx2.png\"}}]}");
obj1.setErrCode("错误");
obj1.setSuccess(true);
obj1.setOrderId(1122334L);
obj1.setDegree("99新");
obj1.setQuoteId("10");
obj1.setSummary("99新,外观完好");
obj1.setRecycleSupplierId(545749246L);
obj1.setExplanation("{\"desc\":\"检测报告\",\"images\":[\"https:\/\/img.alicdn.com\/imgextra\/i2\/2207288991077\/O1CN01Jgb4v61JpJGjZBxsE_!!2207288991077.png\"]}");
obj1.setAppraiseType(1L);
obj1.setImei("12412424");
AlibabaIdleRecycleInspectionReportRequest.HashMap obj2 = new AlibabaIdleRecycleInspectionReportRequest.HashMap();
obj2.setRecyclePrice("30000");
obj2.setShipType("1:顺丰快递上门取件,2:服务商邮寄");
obj1.setExtAttributes(obj2);
req.setInspectionReport(obj1);
AlibabaIdleRecycleInspectionReportResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaIdleRecycleInspectionReportRequest req = new AlibabaIdleRecycleInspectionReportRequest();
AlibabaIdleRecycleInspectionReportRequest.InspectionReportDomain obj1 = new AlibabaIdleRecycleInspectionReportRequest.InspectionReportDomain();
obj1.Price = 4400L;
obj1.ErrMsg = "错误信息描述";
obj1.Report = "{\"questions\":[{\"answers\":[{\"id\":105365}],\"id\":100002},{\"answers\":[{\"id\":106302}],\"id\":100004},{\"answers\":[{\"id\":100016}],\"id\":100006},{\"answers\":[{\"id\":248}],\"id\":70},{\"answers\":[{\"id\":62}],\"id\":26},{\"answers\":[{\"id\":78}],\"id\":32},{\"answers\":[{\"id\":253}],\"id\":10,\"tips\":{\"picUrl\":\"https://xxx.png;https://xxx2.png\"}},{\"answers\":[{\"id\":38}],\"id\":18},{\"answers\":[{\"id\":84}],\"id\":34},{\"answers\":[{\"id\":54},{\"id\":92}],\"id\":99999,\"tips\":{\"picUrl\":\"https://xxx.png;https://xxx2.png\"}}]}";
obj1.ErrCode = "错误";
obj1.Success = true;
obj1.OrderId = 1122334L;
obj1.Degree = "99新";
obj1.QuoteId = "10";
obj1.Summary = "99新,外观完好";
obj1.RecycleSupplierId = 545749246L;
obj1.Explanation = "{\"desc\":\"检测报告\",\"images\":[\"https:\/\/img.alicdn.com\/imgextra\/i2\/2207288991077\/O1CN01Jgb4v61JpJGjZBxsE_!!2207288991077.png\"]}";
obj1.AppraiseType = 1L;
obj1.Imei = "12412424";
AlibabaIdleRecycleInspectionReportRequest.HashMapDomain obj2 = new AlibabaIdleRecycleInspectionReportRequest.HashMapDomain();
obj2.RecyclePrice = "30000";
obj2.ShipType = "1:顺丰快递上门取件,2:服务商邮寄";
obj1.ExtAttributes= obj2;
req.InspectionReport_ = obj1;
AlibabaIdleRecycleInspectionReportResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaIdleRecycleInspectionReportRequest;
$inspection_report = new InspectionReport;
$inspection_report->price="4400";
$inspection_report->err_msg="错误信息描述";
$inspection_report->report="{\"questions\":[{\"answers\":[{\"id\":105365}],\"id\":100002},{\"answers\":[{\"id\":106302}],\"id\":100004},{\"answers\":[{\"id\":100016}],\"id\":100006},{\"answers\":[{\"id\":248}],\"id\":70},{\"answers\":[{\"id\":62}],\"id\":26},{\"answers\":[{\"id\":78}],\"id\":32},{\"answers\":[{\"id\":253}],\"id\":10,\"tips\":{\"picUrl\":\"https://xxx.png;https://xxx2.png\"}},{\"answers\":[{\"id\":38}],\"id\":18},{\"answers\":[{\"id\":84}],\"id\":34},{\"answers\":[{\"id\":54},{\"id\":92}],\"id\":99999,\"tips\":{\"picUrl\":\"https://xxx.png;https://xxx2.png\"}}]}";
$inspection_report->err_code="错误";
$inspection_report->success="true";
$inspection_report->order_id="1122334";
$inspection_report->degree="99新";
$inspection_report->quote_id="10";
$inspection_report->summary="99新,外观完好";
$inspection_report->recycle_supplier_id="545749246";
$inspection_report->explanation="{\"desc\":\"检测报告\",\"images\":[\"https:\/\/img.alicdn.com\/imgextra\/i2\/2207288991077\/O1CN01Jgb4v61JpJGjZBxsE_!!2207288991077.png\"]}";
$inspection_report->appraise_type="1";
$inspection_report->imei="12412424";
$ext_attributes = new HashMap;
$ext_attributes->recycle_price="30000";
$ext_attributes->ship_type="1:顺丰快递上门取件,2:服务商邮寄";
$inspection_report->ext_attributes = $ext_attributes;
$req->setInspectionReport(json_encode($inspection_report));
$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.idle.recycle.inspection.report' \
-d 'partner_id=apidoc' \
-d 'sign=8BC89C42E4DCDA64E4D026221162167E' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-27+22%3A34%3A25' \
-d 'v=2.0' \
-d 'inspection_report=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaIdleRecycleInspectionReportRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.inspection_report=""
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.idle.recycle.inspection.report");
add_param(pRequest,"inspection_report","数据结构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.idle.recycle.inspection.report', {
'inspection_report':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})