TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAmapChannelCarComponentGetRequest req = new AlibabaAmapChannelCarComponentGetRequest();
req.setAmapOrderId("1541894302897424029");
req.setTraceId("6d684a10-873a-5c84-878c-161f15923200");
req.setClientSource("amap-car");
req.setUserId("5675123");
req.setMobile("15811531425");
req.setLongitude("116.31222");
req.setLatitude("39.980286");
req.setIdfa("1921fcae-1dc3-ddc8-c804-73d69da38852");
req.setPlatform("ios");
req.setDiu("1921fcae-1dc3-ddc8-c804-73d69da38852");
req.setImei("1921fcae-1dc3-ddc8-c804-73d69da38852");
req.setNeedComponentList("tripShare");
AlibabaAmapChannelCarComponentGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaAmapChannelCarComponentGetRequest req = new AlibabaAmapChannelCarComponentGetRequest();
req.AmapOrderId = "1541894302897424029";
req.TraceId = "6d684a10-873a-5c84-878c-161f15923200";
req.ClientSource = "amap-car";
req.UserId = "5675123";
req.Mobile = "15811531425";
req.Longitude = "116.31222";
req.Latitude = "39.980286";
req.Idfa = "1921fcae-1dc3-ddc8-c804-73d69da38852";
req.Platform = "ios";
req.Diu = "1921fcae-1dc3-ddc8-c804-73d69da38852";
req.Imei = "1921fcae-1dc3-ddc8-c804-73d69da38852";
req.NeedComponentList = "tripShare";
AlibabaAmapChannelCarComponentGetResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaAmapChannelCarComponentGetRequest;
$req->setAmapOrderId("1541894302897424029");
$req->setTraceId("6d684a10-873a-5c84-878c-161f15923200");
$req->setClientSource("amap-car");
$req->setUserId("5675123");
$req->setMobile("15811531425");
$req->setLongitude("116.31222");
$req->setLatitude("39.980286");
$req->setIdfa("1921fcae-1dc3-ddc8-c804-73d69da38852");
$req->setPlatform("ios");
$req->setDiu("1921fcae-1dc3-ddc8-c804-73d69da38852");
$req->setImei("1921fcae-1dc3-ddc8-c804-73d69da38852");
$req->setNeedComponentList("tripShare");
$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.amap.channel.car.component.get' \
-d 'partner_id=apidoc' \
-d 'sign=0862EC3FE41FA3E5D3759D33194521F5' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-29+18%3A35%3A58' \
-d 'v=2.0' \
-d 'amap_order_id=1541894302897424029' \
-d 'client_source=amap-car' \
-d 'diu=1921fcae-1dc3-ddc8-c804-73d69da38852' \
-d 'idfa=1921fcae-1dc3-ddc8-c804-73d69da38852' \
-d 'imei=1921fcae-1dc3-ddc8-c804-73d69da38852' \
-d 'latitude=39.980286' \
-d 'longitude=116.31222' \
-d 'mobile=15811531425' \
-d 'need_component_list=tripShare' \
-d 'platform=ios' \
-d 'trace_id=6d684a10-873a-5c84-878c-161f15923200' \
-d 'user_id=5675123'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaAmapChannelCarComponentGetRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.amap_order_id="1541894302897424029"
req.trace_id="6d684a10-873a-5c84-878c-161f15923200"
req.client_source="amap-car"
req.user_id="5675123"
req.mobile="15811531425"
req.longitude="116.31222"
req.latitude="39.980286"
req.idfa="1921fcae-1dc3-ddc8-c804-73d69da38852"
req.platform="ios"
req.diu="1921fcae-1dc3-ddc8-c804-73d69da38852"
req.imei="1921fcae-1dc3-ddc8-c804-73d69da38852"
req.need_component_list="tripShare"
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.amap.channel.car.component.get");
add_param(pRequest,"amap_order_id","1541894302897424029");
add_param(pRequest,"trace_id","6d684a10-873a-5c84-878c-161f15923200");
add_param(pRequest,"client_source","amap-car");
add_param(pRequest,"user_id","5675123");
add_param(pRequest,"mobile","15811531425");
add_param(pRequest,"longitude","116.31222");
add_param(pRequest,"latitude","39.980286");
add_param(pRequest,"idfa","1921fcae-1dc3-ddc8-c804-73d69da38852");
add_param(pRequest,"platform","ios");
add_param(pRequest,"diu","1921fcae-1dc3-ddc8-c804-73d69da38852");
add_param(pRequest,"imei","1921fcae-1dc3-ddc8-c804-73d69da38852");
add_param(pRequest,"need_component_list","tripShare");
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.amap.channel.car.component.get', {
'amap_order_id':'1541894302897424029',
'trace_id':'6d684a10-873a-5c84-878c-161f15923200',
'client_source':'amap-car',
'user_id':'5675123',
'mobile':'15811531425',
'longitude':'116.31222',
'latitude':'39.980286',
'idfa':'1921fcae-1dc3-ddc8-c804-73d69da38852',
'platform':'ios',
'diu':'1921fcae-1dc3-ddc8-c804-73d69da38852',
'imei':'1921fcae-1dc3-ddc8-c804-73d69da38852',
'need_component_list':'tripShare'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})