TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaFliggyPushcenterIntentionQueryRequest req = new AlibabaFliggyPushcenterIntentionQueryRequest();
AlibabaFliggyPushcenterIntentionQueryRequest.HarmonyIntentionRequest obj1 = new AlibabaFliggyPushcenterIntentionQueryRequest.HarmonyIntentionRequest();
AlibabaFliggyPushcenterIntentionQueryRequest.Pagination obj2 = new AlibabaFliggyPushcenterIntentionQueryRequest.Pagination();
obj2.setMaxTotal(1L);
obj2.setLimit(1L);
obj2.setStart("test");
obj1.setPagination(obj2);
obj1.setUserAuth("{}");
obj1.setVersion("test");
obj1.setDeviceInfo("{}");
AlibabaFliggyPushcenterIntentionQueryRequest.Content obj3 = new AlibabaFliggyPushcenterIntentionQueryRequest.Content();
obj3.setKeywords("test");
obj3.setCity("test");
AlibabaFliggyPushcenterIntentionQueryRequest.Location obj4 = new AlibabaFliggyPushcenterIntentionQueryRequest.Location();
obj4.setLocationSystem("test");
obj4.setLocationName("test");
obj4.setAddress("test");
obj4.setLatitude("test");
obj4.setLongitude("test");
obj3.setLocation(obj4);
obj3.setTravelGuidesType("test");
obj1.setContent(obj3);
req.setHarmonyIntentionRequest(obj1);
AlibabaFliggyPushcenterIntentionQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaFliggyPushcenterIntentionQueryRequest req = new AlibabaFliggyPushcenterIntentionQueryRequest();
AlibabaFliggyPushcenterIntentionQueryRequest.HarmonyIntentionRequestDomain obj1 = new AlibabaFliggyPushcenterIntentionQueryRequest.HarmonyIntentionRequestDomain();
AlibabaFliggyPushcenterIntentionQueryRequest.PaginationDomain obj2 = new AlibabaFliggyPushcenterIntentionQueryRequest.PaginationDomain();
obj2.MaxTotal = 1L;
obj2.Limit = 1L;
obj2.Start = "test";
obj1.Pagination= obj2;
obj1.UserAuth = "{}";
obj1.Version = "test";
obj1.DeviceInfo = "{}";
AlibabaFliggyPushcenterIntentionQueryRequest.ContentDomain obj3 = new AlibabaFliggyPushcenterIntentionQueryRequest.ContentDomain();
obj3.Keywords = "test";
obj3.City = "test";
AlibabaFliggyPushcenterIntentionQueryRequest.LocationDomain obj4 = new AlibabaFliggyPushcenterIntentionQueryRequest.LocationDomain();
obj4.LocationSystem = "test";
obj4.LocationName = "test";
obj4.Address = "test";
obj4.Latitude = "test";
obj4.Longitude = "test";
obj3.Location= obj4;
obj3.TravelGuidesType = "test";
obj1.Content= obj3;
req.HarmonyIntentionRequest_ = obj1;
AlibabaFliggyPushcenterIntentionQueryResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaFliggyPushcenterIntentionQueryRequest;
$harmony_intention_request = new HarmonyIntentionRequest;
$pagination = new Pagination;
$pagination->max_total="1";
$pagination->limit="1";
$pagination->start="test";
$harmony_intention_request->pagination = $pagination;
$harmony_intention_request->user_auth="{}";
$harmony_intention_request->version="test";
$harmony_intention_request->device_info="{}";
$content = new Content;
$content->keywords="test";
$content->city="test";
$location = new Location;
$location->location_system="test";
$location->location_name="test";
$location->address="test";
$location->latitude="test";
$location->longitude="test";
$content->location = $location;
$content->travel_guides_type="test";
$harmony_intention_request->content = $content;
$req->setHarmonyIntentionRequest(json_encode($harmony_intention_request));
$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.fliggy.pushcenter.intention.query' \
-d 'partner_id=apidoc' \
-d 'sign=01338BA8A4EBAC0500650EA9E02E8E3F' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-06-19+12%3A24%3A28' \
-d 'v=2.0' \
-d 'harmony_intention_request=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaFliggyPushcenterIntentionQueryRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.harmony_intention_request="数据结构示例JSON格式"
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.fliggy.pushcenter.intention.query");
add_param(pRequest,"harmony_intention_request","数据结构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.fliggy.pushcenter.intention.query', {
'harmony_intention_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})