TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AliyunNlpHawkseekInfoQueryRequest req = new AliyunNlpHawkseekInfoQueryRequest();
req.setScene("abc");
req.setUserId("123");
req.setServiceName("service");
req.setParam("abc");
AliyunNlpHawkseekInfoQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AliyunNlpHawkseekInfoQueryRequest req = new AliyunNlpHawkseekInfoQueryRequest();
req.Scene = "abc";
req.UserId = "123";
req.ServiceName = "service";
req.Param = "abc";
AliyunNlpHawkseekInfoQueryResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AliyunNlpHawkseekInfoQueryRequest;
$req->setScene("abc");
$req->setUserId("123");
$req->setServiceName("service");
$req->setParam("abc");
$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=aliyun.nlp.hawkseek.info.query' \
-d 'partner_id=apidoc' \
-d 'sign=8090E37D1C92C8B062FC65C096947069' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-29+06%3A18%3A44' \
-d 'v=2.0' \
-d 'param=abc' \
-d 'scene=abc' \
-d 'service_name=service' \
-d 'user_id=123'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AliyunNlpHawkseekInfoQueryRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.scene="abc"
req.user_id="123"
req.service_name="service"
req.param="abc"
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,"aliyun.nlp.hawkseek.info.query");
add_param(pRequest,"scene","abc");
add_param(pRequest,"user_id","123");
add_param(pRequest,"service_name","service");
add_param(pRequest,"param","abc");
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('aliyun.nlp.hawkseek.info.query', {
'scene':'abc',
'user_id':'123',
'service_name':'service',
'param':'abc'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})