TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TmallFenxiaoWcItemGetRequest req = new TmallFenxiaoWcItemGetRequest();
TmallFenxiaoWcItemGetRequest.TopQueryWcItemDo obj1 = new TmallFenxiaoWcItemGetRequest.TopQueryWcItemDo();
obj1.setItemIds(new Long[] { 2300826472426 };
);
obj1.setProductParam("暂无");
obj1.setFields("skus");
obj1.setUserId(134343L);
obj1.setTargetMarket(1110021L);
req.setWcItem(obj1);
TmallFenxiaoWcItemGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
TmallFenxiaoWcItemGetRequest req = new TmallFenxiaoWcItemGetRequest();
TmallFenxiaoWcItemGetRequest.TopQueryWcItemDoDomain obj1 = new TmallFenxiaoWcItemGetRequest.TopQueryWcItemDoDomain();
obj1.ItemIds = new long[] { 2300826472426 };
;
obj1.ProductParam = "暂无";
obj1.Fields = "skus";
obj1.UserId = 134343L;
obj1.TargetMarket = 1110021L;
req.WcItem_ = obj1;
TmallFenxiaoWcItemGetResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new TmallFenxiaoWcItemGetRequest;
$wc_item = new TopQueryWcItemDo;
$wc_item->item_ids="2300826472426";
$wc_item->product_param="暂无";
$wc_item->fields="skus";
$wc_item->user_id="134343";
$wc_item->target_market="1110021";
$req->setWcItem(json_encode($wc_item));
$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=tmall.fenxiao.wc.item.get' \
-d 'partner_id=apidoc' \
-d 'sign=1F6102DC0CF5D7F80D1B6F147054D259' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-04+15%3A17%3A39' \
-d 'v=2.0' \
-d 'wc_item=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.TmallFenxiaoWcItemGetRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.wc_item=""
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,"tmall.fenxiao.wc.item.get");
add_param(pRequest,"wc_item","数据结构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('tmall.fenxiao.wc.item.get', {
'wc_item':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})