TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
OpentradeGroupQueryRequest req = new OpentradeGroupQueryRequest();
req.setPageSize(10L);
req.setOpenUserId("sfasfa");
req.setPageIndex(1L);
req.setOrderBy(0L);
req.setItemId(1233L);
req.setGroupActivityId(11111L);
req.setWithExpire(false);
OpentradeGroupQueryResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
OpentradeGroupQueryRequest req = new OpentradeGroupQueryRequest();
req.PageSize = 10L;
req.OpenUserId = "sfasfa";
req.PageIndex = 1L;
req.OrderBy = 0L;
req.ItemId = 1233L;
req.GroupActivityId = 11111L;
req.WithExpire = false;
OpentradeGroupQueryResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new OpentradeGroupQueryRequest;
$req->setPageSize("10");
$req->setOpenUserId("sfasfa");
$req->setPageIndex("1");
$req->setOrderBy("0");
$req->setItemId("1233");
$req->setGroupActivityId("11111");
$req->setWithExpire("false");
$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=taobao.opentrade.group.query' \
-d 'partner_id=apidoc' \
-d 'session=1167476e-196e-4981-bfc5-5f0d91d2961e' \
-d 'sign=2510A050B59FC6E4F845BCB272A4173F' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-02+22%3A20%3A03' \
-d 'v=2.0' \
-d 'group_activity_id=11111' \
-d 'item_id=1233' \
-d 'open_user_id=sfasfa' \
-d 'order_by=0' \
-d 'page_index=1' \
-d 'page_size=10' \
-d 'with_expire=false'
# -*- coding: utf-8 -*-
import top.api
req=top.api.OpentradeGroupQueryRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.page_size=10
req.open_user_id="sfasfa"
req.page_index=1
req.order_by=0
req.item_id=1233
req.group_activity_id=11111
req.with_expire=false
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,"taobao.opentrade.group.query");
add_param(pRequest,"page_size","10");
add_param(pRequest,"open_user_id","sfasfa");
add_param(pRequest,"page_index","1");
add_param(pRequest,"order_by","0");
add_param(pRequest,"item_id","1233");
add_param(pRequest,"group_activity_id","11111");
add_param(pRequest,"with_expire","false");
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('taobao.opentrade.group.query', {
'page_size':'10',
'open_user_id':'sfasfa',
'page_index':'1',
'order_by':'0',
'item_id':'1233',
'group_activity_id':'11111',
'with_expire':'false'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})