TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TbkScIntelligentRecommendationInformationReportRequest req = new TbkScIntelligentRecommendationInformationReportRequest();
req.setQuery("一箱牛奶");
req.setUvid("dsaqewqe");
req.setRobotId("eqewq");
TbkScIntelligentRecommendationInformationReportRequest.MessageHistory obj1 = new TbkScIntelligentRecommendationInformationReportRequest.MessageHistory();
obj1.setType(1L);
obj1.setContent("xxxx");
obj1.setTime(21321321L);
req.setMessageHistory(obj1);
req.setBizType(1L);
TbkScIntelligentRecommendationInformationReportResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
TbkScIntelligentRecommendationInformationReportRequest req = new TbkScIntelligentRecommendationInformationReportRequest();
req.Query = "一箱牛奶";
req.Uvid = "dsaqewqe";
req.RobotId = "eqewq";
TbkScIntelligentRecommendationInformationReportRequest.MessageHistoryDomain obj1 = new TbkScIntelligentRecommendationInformationReportRequest.MessageHistoryDomain();
obj1.Type = 1L;
obj1.Content = "xxxx";
obj1.Time = 21321321L;
req.MessageHistory_ = obj1;
req.BizType = 1L;
TbkScIntelligentRecommendationInformationReportResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new TbkScIntelligentRecommendationInformationReportRequest;
$req->setQuery("一箱牛奶");
$req->setUvid("dsaqewqe");
$req->setRobotId("eqewq");
$message_history = new MessageHistory;
$message_history->type="1";
$message_history->content="xxxx";
$message_history->time="21321321";
$req->setMessageHistory(json_encode($message_history));
$req->setBizType("1");
$resp = $c->execute($req, $sessionKey);
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.tbk.sc.intelligent.recommendation.information.report' \
-d 'partner_id=apidoc' \
-d 'session=9ec3b2f8-99fb-4501-9be9-5c457b3e47a6' \
-d 'sign=F35905E7FB81E6E10C463DD5A5BEECD6' \
-d 'sign_method=hmac' \
-d 'timestamp=2026-05-22+01%3A55%3A41' \
-d 'v=2.0' \
-d 'biz_type=1' \
-d 'message_history=%7B%22time%22%3A1238989894%2C%22type%22%3A1%2C%22content%22%3A%22%E4%BB%8A%E6%99%9A%E6%89%93%E8%80%81%E8%99%8E%22%7D' \
-d 'query=%E4%B8%80%E7%AE%B1%E7%89%9B%E5%A5%B6' \
-d 'robot_id=eqewq' \
-d 'uvid=dsaqewqe'
# -*- coding: utf-8 -*-
import top.api
req=top.api.TbkScIntelligentRecommendationInformationReportRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.query="一箱牛奶"
req.uvid="dsaqewqe"
req.robot_id="eqewq"
req.message_history="[{\"time\":1238989894,\"type\":1,\"content\":\"今晚打老虎\"}]"
req.biz_type=1
try:
resp= req.getResponse(sessionkey)
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.tbk.sc.intelligent.recommendation.information.report");
add_param(pRequest,"query","一箱牛奶");
add_param(pRequest,"uvid","dsaqewqe");
add_param(pRequest,"robot_id","eqewq");
add_param(pRequest,"message_history","数据结构JSON示例");
add_param(pRequest,"biz_type","1");
pResponse = top_execute(pClient,pRequest,sessionKey);
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',
'url': 'http://gw.api.taobao.com/router/rest'
});
client.execute('taobao.tbk.sc.intelligent.recommendation.information.report', {
'query':'一箱牛奶',
'uvid':'dsaqewqe',
'robot_id':'eqewq',
'message_history':'数据结构JSON示例',
'biz_type':'1'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})