TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaMosGoodsOpenPricePlanQueryRequest req = new AlibabaMosGoodsOpenPricePlanQueryRequest();
AlibabaMosGoodsOpenPricePlanQueryRequest.QueryPricePlanReq obj1 = new AlibabaMosGoodsOpenPricePlanQueryRequest.QueryPricePlanReq();
List<AlibabaMosGoodsOpenPricePlanQueryRequest.OuterIdWithCounterDTO> list3 = new ArrayList<AlibabaMosGoodsOpenPricePlanQueryRequest.OuterIdWithCounterDTO>();
AlibabaMosGoodsOpenPricePlanQueryRequest.OuterIdWithCounterDTO obj4 = new AlibabaMosGoodsOpenPricePlanQueryRequest.OuterIdWithCounterDTO();
list3.add(obj4);
obj4.setOuterId("202107070021m");
obj4.setMallNoShopNoList(""MJ01-81676"");
obj1.setOuterIdWithCounterList(list3);
req.setQueryPricePlanReq(obj1);
AlibabaMosGoodsOpenPricePlanQueryResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaMosGoodsOpenPricePlanQueryRequest req = new AlibabaMosGoodsOpenPricePlanQueryRequest();
AlibabaMosGoodsOpenPricePlanQueryRequest.QueryPricePlanReqDomain obj1 = new AlibabaMosGoodsOpenPricePlanQueryRequest.QueryPricePlanReqDomain();
List<AlibabaMosGoodsOpenPricePlanQueryRequest.OuterIdWithCounterDTODomain> list3 = new List<AlibabaMosGoodsOpenPricePlanQueryRequest.OuterIdWithCounterDTODomain>();
AlibabaMosGoodsOpenPricePlanQueryRequest.OuterIdWithCounterDTODomain obj4 = new AlibabaMosGoodsOpenPricePlanQueryRequest.OuterIdWithCounterDTODomain();
list3.Add(obj4);
obj4.OuterId = "202107070021m";
obj4.MallNoShopNoList = ""MJ01-81676"";
obj1.OuterIdWithCounterList= list3;
req.QueryPricePlanReq_ = obj1;
AlibabaMosGoodsOpenPricePlanQueryResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaMosGoodsOpenPricePlanQueryRequest;
$query_price_plan_req = new QueryPricePlanReq;
$outer_id_with_counter_list = new OuterIdWithCounterDTO;
$outer_id_with_counter_list->outer_id="202107070021m";
$outer_id_with_counter_list->mall_no_shop_no_list="[\"MJ01-81676\"]";
$query_price_plan_req->outer_id_with_counter_list = $outer_id_with_counter_list;
$req->setQueryPricePlanReq(json_encode($query_price_plan_req));
$resp = $c->execute($req, $sessionKey);
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.mos.goods.open.price.plan.query' \
-d 'partner_id=apidoc' \
-d 'session=b969b480-1718-4325-a8a0-c249fc12de7b' \
-d 'sign=36B764DDC95BF2090F19437B834A7AA1' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-06-08+00%3A55%3A46' \
-d 'v=2.0' \
-d 'query_price_plan_req=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaMosGoodsOpenPricePlanQueryRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.query_price_plan_req="数据结构示例JSON格式"
try:
resp= req.getResponse(sessionkey)
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.mos.goods.open.price.plan.query");
add_param(pRequest,"query_price_plan_req","数据结构JSON示例");
pResponse = top_execute(pClient,pRequest,sessionKey);
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.mos.goods.open.price.plan.query', {
'query_price_plan_req':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})