TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
YunosMiniappCommonPoiSyncRequest req = new YunosMiniappCommonPoiSyncRequest();
YunosMiniappCommonPoiSyncRequest.PoiRequest obj1 = new YunosMiniappCommonPoiSyncRequest.PoiRequest();
obj1.setSourceId("ns_12345");
obj1.setCount(5L);
List<YunosMiniappCommonPoiSyncRequest.Poi> list3 = new ArrayList<YunosMiniappCommonPoiSyncRequest.Poi>();
YunosMiniappCommonPoiSyncRequest.Poi obj4 = new YunosMiniappCommonPoiSyncRequest.Poi();
list3.add(obj4);
obj4.setImages("http://image.abc/a.png");
obj4.setAddress("北京市昌平区");
obj4.setDistrictCode(110114L);
obj4.setDistrictName("昌平区");
obj4.setProvinceCode(110000L);
obj4.setCityCode(110100L);
obj4.setCompanyName("颜车汽车美容养护中心");
obj4.setLatitude("40.11");
obj4.setOpType(1L);
obj4.setLocationType("GD");
obj4.setTelephone("12323423456");
obj4.setSalesVolume(4L);
obj4.setTags("美食");
obj4.setAttrs("{\"chain\":\"0\",\"isStatus\":\"4\",\"latitude\":40.207351050260385,\"rating\":\"B\",\"startTime\":1611244800000,\"storeImg\":\"https://csp.schengle.com/group1/M00/21/A8/wKilJl4B1quAAu3IAAD750lQYyU465.jpg,https://csp.schengle.com/group1/M00/21/A8/wKilJl4B1quAZ2xiAADzuYW9RnM608.jpg,https://csp.schengle.com/group1/M00/21/A8/wKilJl4B1quACwYbAAClWuaCSy0248.jpg\",\"endTime\":1614787200000,\"doorPhotoUrl\":\"https://csp.schengle.com/group1/M00/54/B3/wKilJ2HD-yeAHridAABHzBAv6qI88.jpeg\",\"longitude\":116.21861699999992}");
obj4.setScore("5");
obj4.setCityName("北京市");
obj4.setPrice("30.00");
obj4.setId("1571101147178796641");
obj4.setPoiId("B0FFLMZB6C");
obj4.setProvinceName("北京市");
obj4.setLongitude("116.11");
obj1.setList(list3);
req.setPoiRequest(obj1);
YunosMiniappCommonPoiSyncResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
YunosMiniappCommonPoiSyncRequest req = new YunosMiniappCommonPoiSyncRequest();
YunosMiniappCommonPoiSyncRequest.PoiRequestDomain obj1 = new YunosMiniappCommonPoiSyncRequest.PoiRequestDomain();
obj1.SourceId = "ns_12345";
obj1.Count = 5L;
List<YunosMiniappCommonPoiSyncRequest.PoiDomain> list3 = new List<YunosMiniappCommonPoiSyncRequest.PoiDomain>();
YunosMiniappCommonPoiSyncRequest.PoiDomain obj4 = new YunosMiniappCommonPoiSyncRequest.PoiDomain();
list3.Add(obj4);
obj4.Images = "http://image.abc/a.png";
obj4.Address = "北京市昌平区";
obj4.DistrictCode = 110114L;
obj4.DistrictName = "昌平区";
obj4.ProvinceCode = 110000L;
obj4.CityCode = 110100L;
obj4.CompanyName = "颜车汽车美容养护中心";
obj4.Latitude = "40.11";
obj4.OpType = 1L;
obj4.LocationType = "GD";
obj4.Telephone = "12323423456";
obj4.SalesVolume = 4L;
obj4.Tags = "美食";
obj4.Attrs = "{\"chain\":\"0\",\"isStatus\":\"4\",\"latitude\":40.207351050260385,\"rating\":\"B\",\"startTime\":1611244800000,\"storeImg\":\"https://csp.schengle.com/group1/M00/21/A8/wKilJl4B1quAAu3IAAD750lQYyU465.jpg,https://csp.schengle.com/group1/M00/21/A8/wKilJl4B1quAZ2xiAADzuYW9RnM608.jpg,https://csp.schengle.com/group1/M00/21/A8/wKilJl4B1quACwYbAAClWuaCSy0248.jpg\",\"endTime\":1614787200000,\"doorPhotoUrl\":\"https://csp.schengle.com/group1/M00/54/B3/wKilJ2HD-yeAHridAABHzBAv6qI88.jpeg\",\"longitude\":116.21861699999992}";
obj4.Score = "5";
obj4.CityName = "北京市";
obj4.Price = "30.00";
obj4.Id = "1571101147178796641";
obj4.PoiId = "B0FFLMZB6C";
obj4.ProvinceName = "北京市";
obj4.Longitude = "116.11";
obj1.List= list3;
req.PoiRequest_ = obj1;
YunosMiniappCommonPoiSyncResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new YunosMiniappCommonPoiSyncRequest;
$poi_request = new PoiRequest;
$poi_request->source_id="ns_12345";
$poi_request->count="5";
$list = new Poi;
$list->images="http://image.abc/a.png";
$list->address="北京市昌平区";
$list->district_code="110114";
$list->district_name="昌平区";
$list->province_code="110000";
$list->city_code="110100";
$list->company_name="颜车汽车美容养护中心";
$list->latitude="40.11";
$list->op_type="1";
$list->location_type="GD";
$list->telephone="12323423456";
$list->sales_volume="4";
$list->tags="美食";
$list->attrs="{\"chain\":\"0\",\"isStatus\":\"4\",\"latitude\":40.207351050260385,\"rating\":\"B\",\"startTime\":1611244800000,\"storeImg\":\"https://csp.schengle.com/group1/M00/21/A8/wKilJl4B1quAAu3IAAD750lQYyU465.jpg,https://csp.schengle.com/group1/M00/21/A8/wKilJl4B1quAZ2xiAADzuYW9RnM608.jpg,https://csp.schengle.com/group1/M00/21/A8/wKilJl4B1quACwYbAAClWuaCSy0248.jpg\",\"endTime\":1614787200000,\"doorPhotoUrl\":\"https://csp.schengle.com/group1/M00/54/B3/wKilJ2HD-yeAHridAABHzBAv6qI88.jpeg\",\"longitude\":116.21861699999992}";
$list->score="5";
$list->city_name="北京市";
$list->price="30.00";
$list->id="1571101147178796641";
$list->poi_id="B0FFLMZB6C";
$list->province_name="北京市";
$list->longitude="116.11";
$poi_request->list = $list;
$req->setPoiRequest(json_encode($poi_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=yunos.miniapp.common.poi.sync' \
-d 'partner_id=apidoc' \
-d 'sign=9F1541A20BB87F0629B1DEA761357494' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-07-23+22%3A21%3A17' \
-d 'v=2.0' \
-d 'poi_request=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.YunosMiniappCommonPoiSyncRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.poi_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,"yunos.miniapp.common.poi.sync");
add_param(pRequest,"poi_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('yunos.miniapp.common.poi.sync', {
'poi_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})