TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
YunosChargeStorageLsPullstationRequest req = new YunosChargeStorageLsPullstationRequest();
YunosChargeStorageLsPullstationRequest.LsStationReqVo obj1 = new YunosChargeStorageLsPullstationRequest.LsStationReqVo();
obj1.setStartTime(1L);
obj1.setPageIndex(1L);
obj1.setPageSize(1L);
List<YunosChargeStorageLsPullstationRequest.LsStationIdReq> list3 = new ArrayList<YunosChargeStorageLsPullstationRequest.LsStationIdReq>();
YunosChargeStorageLsPullstationRequest.LsStationIdReq obj4 = new YunosChargeStorageLsPullstationRequest.LsStationIdReq();
list3.add(obj4);
obj4.setOperatorId("bbb");
obj4.setStationId("aaa");
obj1.setStationIdList(list3);
req.setLsStationReqVo(obj1);
YunosChargeStorageLsPullstationResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
YunosChargeStorageLsPullstationRequest req = new YunosChargeStorageLsPullstationRequest();
YunosChargeStorageLsPullstationRequest.LsStationReqVoDomain obj1 = new YunosChargeStorageLsPullstationRequest.LsStationReqVoDomain();
obj1.StartTime = 1L;
obj1.PageIndex = 1L;
obj1.PageSize = 1L;
List<YunosChargeStorageLsPullstationRequest.LsStationIdReqDomain> list3 = new List<YunosChargeStorageLsPullstationRequest.LsStationIdReqDomain>();
YunosChargeStorageLsPullstationRequest.LsStationIdReqDomain obj4 = new YunosChargeStorageLsPullstationRequest.LsStationIdReqDomain();
list3.Add(obj4);
obj4.OperatorId = "bbb";
obj4.StationId = "aaa";
obj1.StationIdList= list3;
req.LsStationReqVo_ = obj1;
YunosChargeStorageLsPullstationResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new YunosChargeStorageLsPullstationRequest;
$ls_station_req_vo = new LsStationReqVo;
$ls_station_req_vo->start_time="1";
$ls_station_req_vo->page_index="1";
$ls_station_req_vo->page_size="1";
$station_id_list = new LsStationIdReq;
$station_id_list->operator_id="bbb";
$station_id_list->station_id="aaa";
$ls_station_req_vo->station_id_list = $station_id_list;
$req->setLsStationReqVo(json_encode($ls_station_req_vo));
$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.storage.ls.pullstation' \
-d 'partner_id=apidoc' \
-d 'sign=72FBAE859F1C3AA344C41089E03D0C25' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-14+18%3A50%3A47' \
-d 'v=2.0' \
-d 'ls_station_req_vo=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.YunosChargeStorageLsPullstationRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.ls_station_req_vo="数据结构示例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.charge.storage.ls.pullstation");
add_param(pRequest,"ls_station_req_vo","数据结构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.charge.storage.ls.pullstation', {
'ls_station_req_vo':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})