TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AliexpressSocialShoppingOrderConfirmSingleproductQueryRequest req = new AliexpressSocialShoppingOrderConfirmSingleproductQueryRequest();
req.setProductId(123456L);
req.setQuantity(1L);
req.setSelectedAddressId(123456L);
req.setShipToCountryCode("RU");
req.setSkuAttr("200007763:201336100");
req.setPromocodeHash("Z4YngkBEkCMha0oGA=");
AliexpressSocialShoppingOrderConfirmSingleproductQueryResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AliexpressSocialShoppingOrderConfirmSingleproductQueryRequest req = new AliexpressSocialShoppingOrderConfirmSingleproductQueryRequest();
req.ProductId = 123456L;
req.Quantity = 1L;
req.SelectedAddressId = 123456L;
req.ShipToCountryCode = "RU";
req.SkuAttr = "200007763:201336100";
req.PromocodeHash = "Z4YngkBEkCMha0oGA=";
AliexpressSocialShoppingOrderConfirmSingleproductQueryResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AliexpressSocialShoppingOrderConfirmSingleproductQueryRequest;
$req->setProductId("123456");
$req->setQuantity("1");
$req->setSelectedAddressId("123456");
$req->setShipToCountryCode("RU");
$req->setSkuAttr("200007763:201336100");
$req->setPromocodeHash("Z4YngkBEkCMha0oGA=");
$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=aliexpress.social.shopping.order.confirm.singleproduct.query' \
-d 'partner_id=apidoc' \
-d 'session=c29f5b8c-c037-429f-a47c-24eedb113eb1' \
-d 'sign=D40970590A11E267AAD505ECD5AF50CE' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-03-05+10%3A22%3A22' \
-d 'v=2.0' \
-d 'product_id=123456' \
-d 'promocode_hash=Z4YngkBEkCMha0oGA%3D' \
-d 'quantity=1' \
-d 'selected_address_id=123456' \
-d 'ship_to_country_code=RU' \
-d 'sku_attr=200007763%3A201336100'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AliexpressSocialShoppingOrderConfirmSingleproductQueryRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.product_id=123456
req.quantity=1
req.selected_address_id=123456
req.ship_to_country_code="RU"
req.sku_attr="200007763:201336100"
req.promocode_hash="Z4YngkBEkCMha0oGA="
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,"aliexpress.social.shopping.order.confirm.singleproduct.query");
add_param(pRequest,"product_id","123456");
add_param(pRequest,"quantity","1");
add_param(pRequest,"selected_address_id","123456");
add_param(pRequest,"ship_to_country_code","RU");
add_param(pRequest,"sku_attr","200007763:201336100");
add_param(pRequest,"promocode_hash","Z4YngkBEkCMha0oGA=");
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('aliexpress.social.shopping.order.confirm.singleproduct.query', {
'product_id':'123456',
'quantity':'1',
'selected_address_id':'123456',
'ship_to_country_code':'RU',
'sku_attr':'200007763:201336100',
'promocode_hash':'Z4YngkBEkCMha0oGA='
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})