TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripPlatformPoiRawFeedRequest req = new AlitripPlatformPoiRawFeedRequest();
AlitripPlatformPoiRawFeedRequest.TripPoiRawSaveParam obj1 = new AlitripPlatformPoiRawFeedRequest.TripPoiRawSaveParam();
obj1.setCountryName("中国");
obj1.setLocalName("外婆家");
obj1.setAlternativePhone("15210985083");
obj1.setNameEn("grandma family");
obj1.setVideoUrl("http://www.baidu.com");
obj1.setCountryCode("CN");
obj1.setLng("120.123");
obj1.setBios("一家好吃的杭帮菜");
obj1.setCity("杭州");
obj1.setBusinessHour("10点到22点");
obj1.setCategory("Food&Restrant");
obj1.setSourceBizId("123456");
obj1.setExtendMap("{\"logo\":\"http://xxx\"}");
obj1.setPostalCode("331000");
obj1.setMainPhone("15210985083");
obj1.setSource("yext");
obj1.setAddress("杭州市西湖区延安路湖滨银泰302");
obj1.setLocalLanguage("Chinese");
obj1.setDescription("一家好吃的杭帮菜");
obj1.setName("外婆家");
obj1.setProvince("浙江");
obj1.setOpenStatus(0L);
obj1.setPhotoUrls(""http://www.baidu.com", "http:www.163.com"");
obj1.setWebSiteUrl("http://www.baidu.com");
obj1.setLat("30.123");
req.setParam0(obj1);
AlitripPlatformPoiRawFeedResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlitripPlatformPoiRawFeedRequest req = new AlitripPlatformPoiRawFeedRequest();
AlitripPlatformPoiRawFeedRequest.TripPoiRawSaveParamDomain obj1 = new AlitripPlatformPoiRawFeedRequest.TripPoiRawSaveParamDomain();
obj1.CountryName = "中国";
obj1.LocalName = "外婆家";
obj1.AlternativePhone = "15210985083";
obj1.NameEn = "grandma family";
obj1.VideoUrl = "http://www.baidu.com";
obj1.CountryCode = "CN";
obj1.Lng = "120.123";
obj1.Bios = "一家好吃的杭帮菜";
obj1.City = "杭州";
obj1.BusinessHour = "10点到22点";
obj1.Category = "Food&Restrant";
obj1.SourceBizId = "123456";
obj1.ExtendMap = "{\"logo\":\"http://xxx\"}";
obj1.PostalCode = "331000";
obj1.MainPhone = "15210985083";
obj1.Source = "yext";
obj1.Address = "杭州市西湖区延安路湖滨银泰302";
obj1.LocalLanguage = "Chinese";
obj1.Description = "一家好吃的杭帮菜";
obj1.Name = "外婆家";
obj1.Province = "浙江";
obj1.OpenStatus = 0L;
obj1.PhotoUrls = ""http://www.baidu.com", "http:www.163.com"";
obj1.WebSiteUrl = "http://www.baidu.com";
obj1.Lat = "30.123";
req.Param0_ = obj1;
AlitripPlatformPoiRawFeedResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlitripPlatformPoiRawFeedRequest;
$param0 = new TripPoiRawSaveParam;
$param0->country_name="中国";
$param0->local_name="外婆家";
$param0->alternative_phone="15210985083";
$param0->name_en="grandma family";
$param0->video_url="http://www.baidu.com";
$param0->country_code="CN";
$param0->lng="120.123";
$param0->bios="一家好吃的杭帮菜";
$param0->city="杭州";
$param0->business_hour="10点到22点";
$param0->category="Food&Restrant";
$param0->source_biz_id="123456";
$param0->extend_map="{\"logo\":\"http://xxx\"}";
$param0->postal_code="331000";
$param0->main_phone="15210985083";
$param0->source="yext";
$param0->address="杭州市西湖区延安路湖滨银泰302";
$param0->local_language="Chinese";
$param0->description="一家好吃的杭帮菜";
$param0->name="外婆家";
$param0->province="浙江";
$param0->open_status="0";
$param0->photo_urls="[\"http://www.baidu.com\", \"http:www.163.com\"]";
$param0->web_site_url="http://www.baidu.com";
$param0->lat="30.123";
$req->setParam0(json_encode($param0));
$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=alitrip.platform.poi.raw.feed' \
-d 'partner_id=apidoc' \
-d 'sign=FEEB8146F00EF2C3D0766F0E1E35FD2B' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-12-15+04%3A03%3A45' \
-d 'v=2.0' \
-d 'param0=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlitripPlatformPoiRawFeedRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.param0=""
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,"alitrip.platform.poi.raw.feed");
add_param(pRequest,"param0","数据结构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('alitrip.platform.poi.raw.feed', {
'param0':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})