TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
YunosAdmarketMaterialAuditRequest req = new YunosAdmarketMaterialAuditRequest();
YunosAdmarketMaterialAuditRequest.SspMaterialAuditResult obj1 = new YunosAdmarketMaterialAuditRequest.SspMaterialAuditResult();
obj1.setReason("{\"1\" : \"缺少信息\"}");
obj1.setMaterialId(16L);
obj1.setStatus("UN_PASS");
List<YunosAdmarketMaterialAuditRequest.ExcludeDevice> list3 = new ArrayList<YunosAdmarketMaterialAuditRequest.ExcludeDevice>();
YunosAdmarketMaterialAuditRequest.ExcludeDevice obj4 = new YunosAdmarketMaterialAuditRequest.ExcludeDevice();
list3.add(obj4);
obj4.setStartTime(StringUtils.parseDateTime("2018-01-01 00:00:00"));
obj4.setEndTime(StringUtils.parseDateTime("2019-01-01 00:00:00"));
obj4.setDeviceIds("1deffbaf0cd4e4a721e39321923eb616");
obj1.setExcludeDevices(list3);
obj1.setChannel("seeyoo");
req.setSspMaterialAuditResult(obj1);
YunosAdmarketMaterialAuditResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
YunosAdmarketMaterialAuditRequest req = new YunosAdmarketMaterialAuditRequest();
YunosAdmarketMaterialAuditRequest.SspMaterialAuditResultDomain obj1 = new YunosAdmarketMaterialAuditRequest.SspMaterialAuditResultDomain();
obj1.Reason = "{\"1\" : \"缺少信息\"}";
obj1.MaterialId = 16L;
obj1.Status = "UN_PASS";
List<YunosAdmarketMaterialAuditRequest.ExcludeDeviceDomain> list3 = new List<YunosAdmarketMaterialAuditRequest.ExcludeDeviceDomain>();
YunosAdmarketMaterialAuditRequest.ExcludeDeviceDomain obj4 = new YunosAdmarketMaterialAuditRequest.ExcludeDeviceDomain();
list3.Add(obj4);
obj4.StartTime = DateTime.Parse(2018-01-01 00:00:00");
obj4.EndTime = DateTime.Parse(2019-01-01 00:00:00");
obj4.DeviceIds = "1deffbaf0cd4e4a721e39321923eb616";
obj1.ExcludeDevices= list3;
obj1.Channel = "seeyoo";
req.SspMaterialAuditResult_ = obj1;
YunosAdmarketMaterialAuditResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new YunosAdmarketMaterialAuditRequest;
$ssp_material_audit_result = new SspMaterialAuditResult;
$ssp_material_audit_result->reason="{\"1\" : \"缺少信息\"}";
$ssp_material_audit_result->material_id="16";
$ssp_material_audit_result->status="UN_PASS";
$exclude_devices = new ExcludeDevice;
$exclude_devices->start_time="2018-01-01 00:00:00";
$exclude_devices->end_time="2019-01-01 00:00:00";
$exclude_devices->device_ids="1deffbaf0cd4e4a721e39321923eb616";
$ssp_material_audit_result->exclude_devices = $exclude_devices;
$ssp_material_audit_result->channel="seeyoo";
$req->setSspMaterialAuditResult(json_encode($ssp_material_audit_result));
$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=yunos.admarket.material.audit' \
-d 'partner_id=apidoc' \
-d 'sign=14DA41523CFD30656471B9FBD92881E1' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-29+15%3A37%3A40' \
-d 'v=2.0' \
-d 'ssp_material_audit_result=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.YunosAdmarketMaterialAuditRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.ssp_material_audit_result=""
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,"yunos.admarket.material.audit");
add_param(pRequest,"ssp_material_audit_result","数据结构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('yunos.admarket.material.audit', {
'ssp_material_audit_result':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})