TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaLawYalaGyMonitorAccRequest req = new AlibabaLawYalaGyMonitorAccRequest();
AlibabaLawYalaGyMonitorAccRequest.GyBaseDataDto obj1 = new AlibabaLawYalaGyMonitorAccRequest.GyBaseDataDto();
obj1.setTaskId(100000L);
obj1.setSeqNum(100000L);
obj1.setPubTime(StringUtils.parseDateTime("2018-05-30 11:11:11"));
obj1.setRiskLevel("P6");
obj1.setTerminalTypeDetail("PC网站");
obj1.setSubject("怕再被“断交”?台当局对仅剩“友邦”狂“免签”");
obj1.setRedirectLink("http://news.sina.com.cn/c/gat/2018-05-28/doc-ihcffhsu4781087.shtml");
obj1.setTerminalType("PC网站");
obj1.setCreatedat(StringUtils.parseDateTime("2018-05-30 11:11:11"));
obj1.setUrl("http://news.sina.com.cn/c/gat/2018-05-28/doc-ihcffhsu4781087.shtml");
obj1.setProductId(100000L);
obj1.setAuthor("一颗小草");
obj1.setRealmName("http://news.sina.com.cn");
obj1.setComparisonTime(StringUtils.parseDateTime("2018-05-30 11:11:11"));
obj1.setSiteId(100000L);
obj1.setSampleMonitorId(0L);
obj1.setDescription("怕再被“断交”?台当局对仅剩“友邦”狂“免签”");
obj1.setSampleTitle("怕再被“断交”?台当局对仅剩“友邦”狂“免签”");
obj1.setSimilarity("100");
obj1.setSampleFrom("新浪");
obj1.setSiteName("新浪");
req.setGyBaseDataDto(obj1);
AlibabaLawYalaGyMonitorAccResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaLawYalaGyMonitorAccRequest req = new AlibabaLawYalaGyMonitorAccRequest();
AlibabaLawYalaGyMonitorAccRequest.GyBaseDataDtoDomain obj1 = new AlibabaLawYalaGyMonitorAccRequest.GyBaseDataDtoDomain();
obj1.TaskId = 100000L;
obj1.SeqNum = 100000L;
obj1.PubTime = DateTime.Parse(2018-05-30 11:11:11");
obj1.RiskLevel = "P6";
obj1.TerminalTypeDetail = "PC网站";
obj1.Subject = "怕再被“断交”?台当局对仅剩“友邦”狂“免签”";
obj1.RedirectLink = "http://news.sina.com.cn/c/gat/2018-05-28/doc-ihcffhsu4781087.shtml";
obj1.TerminalType = "PC网站";
obj1.Createdat = DateTime.Parse(2018-05-30 11:11:11");
obj1.Url = "http://news.sina.com.cn/c/gat/2018-05-28/doc-ihcffhsu4781087.shtml";
obj1.ProductId = 100000L;
obj1.Author = "一颗小草";
obj1.RealmName = "http://news.sina.com.cn";
obj1.ComparisonTime = DateTime.Parse(2018-05-30 11:11:11");
obj1.SiteId = 100000L;
obj1.SampleMonitorId = 0L;
obj1.Description = "怕再被“断交”?台当局对仅剩“友邦”狂“免签”";
obj1.SampleTitle = "怕再被“断交”?台当局对仅剩“友邦”狂“免签”";
obj1.Similarity = "100";
obj1.SampleFrom = "新浪";
obj1.SiteName = "新浪";
req.GyBaseDataDto_ = obj1;
AlibabaLawYalaGyMonitorAccResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaLawYalaGyMonitorAccRequest;
$gy_base_data_dto = new GyBaseDataDto;
$gy_base_data_dto->task_id="100000";
$gy_base_data_dto->seq_num="100000";
$gy_base_data_dto->pub_time="2018-05-30 11:11:11";
$gy_base_data_dto->risk_level="P6";
$gy_base_data_dto->terminal_type_detail="PC网站";
$gy_base_data_dto->subject="怕再被“断交”?台当局对仅剩“友邦”狂“免签”";
$gy_base_data_dto->redirect_link="http://news.sina.com.cn/c/gat/2018-05-28/doc-ihcffhsu4781087.shtml";
$gy_base_data_dto->terminal_type="PC网站";
$gy_base_data_dto->createdat="2018-05-30 11:11:11";
$gy_base_data_dto->url="http://news.sina.com.cn/c/gat/2018-05-28/doc-ihcffhsu4781087.shtml";
$gy_base_data_dto->product_id="100000";
$gy_base_data_dto->author="一颗小草";
$gy_base_data_dto->realm_name="http://news.sina.com.cn";
$gy_base_data_dto->comparison_time="2018-05-30 11:11:11";
$gy_base_data_dto->site_id="100000";
$gy_base_data_dto->sample_monitor_id="0";
$gy_base_data_dto->description="怕再被“断交”?台当局对仅剩“友邦”狂“免签”";
$gy_base_data_dto->sample_title="怕再被“断交”?台当局对仅剩“友邦”狂“免签”";
$gy_base_data_dto->similarity="100";
$gy_base_data_dto->sample_from="新浪";
$gy_base_data_dto->site_name="新浪";
$req->setGyBaseDataDto(json_encode($gy_base_data_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.law.yala.gy.monitor.acc' \
-d 'partner_id=apidoc' \
-d 'sign=C7148BB64B6500D184A7B953B618330F' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-04+16%3A42%3A34' \
-d 'v=2.0' \
-d 'gy_base_data_dto=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaLawYalaGyMonitorAccRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.gy_base_data_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.law.yala.gy.monitor.acc");
add_param(pRequest,"gy_base_data_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.law.yala.gy.monitor.acc', {
'gy_base_data_dto':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})