TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
YunosChargeMapStationRequest req = new YunosChargeMapStationRequest();
req.setRequestParam("{ \"brandCode\": \"MG\", \"lastQueryTime\": \"\", \"oemCode\": \"SMPV\", \"pageNo\": 1, \"pageSize\": 10, \"spOperatorIds\": [\"MA1GUT604\",\"395815801\"] }");
YunosChargeMapStationResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
YunosChargeMapStationRequest req = new YunosChargeMapStationRequest();
req.RequestParam = "{ \"brandCode\": \"MG\", \"lastQueryTime\": \"\", \"oemCode\": \"SMPV\", \"pageNo\": 1, \"pageSize\": 10, \"spOperatorIds\": [\"MA1GUT604\",\"395815801\"] }";
YunosChargeMapStationResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new YunosChargeMapStationRequest;
$req->setRequestParam("{ \"brandCode\": \"MG\", \"lastQueryTime\": \"\", \"oemCode\": \"SMPV\", \"pageNo\": 1, \"pageSize\": 10, \"spOperatorIds\": [\"MA1GUT604\",\"395815801\"] }");
$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.charge.map.station' \
-d 'partner_id=apidoc' \
-d 'sign=17A6F3E2FD40E959F77CECCAE4E69FE1' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-07-09+12%3A20%3A48' \
-d 'v=2.0' \
-d 'request_param=%7B+++%5C%22brandCode%5C%22%3A+%5C%22MG%5C%22%2C+++%5C%22lastQueryTime%5C%22%3A+%5C%22%5C%22%2C+++%5C%22oemCode%5C%22%3A+%5C%22SMPV%5C%22%2C+++%5C%22pageNo%5C%22%3A+1%2C+++%5C%22pageSize%5C%22%3A+10%2C+++%5C%22spOperatorIds%5C%22%3A+%5B%5C%22MA1GUT604%5C%22%2C%5C%22395815801%5C%22%5D+%7D'
# -*- coding: utf-8 -*-
import top.api
req=top.api.YunosChargeMapStationRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.request_param="{ \"brandCode\": \"MG\", \"lastQueryTime\": \"\", \"oemCode\": \"SMPV\", \"pageNo\": 1, \"pageSize\": 10, \"spOperatorIds\": [\"MA1GUT604\",\"395815801\"] }"
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.charge.map.station");
add_param(pRequest,"request_param","{ \"brandCode\": \"MG\", \"lastQueryTime\": \"\", \"oemCode\": \"SMPV\", \"pageNo\": 1, \"pageSize\": 10, \"spOperatorIds\": [\"MA1GUT604\",\"395815801\"] }");
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.charge.map.station', {
'request_param':'{ \"brandCode\": \"MG\", \"lastQueryTime\": \"\", \"oemCode\": \"SMPV\", \"pageNo\": 1, \"pageSize\": 10, \"spOperatorIds\": [\"MA1GUT604\",\"395815801\"] }'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})