TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
PromotionActivityMixnickQueryrecordRequest req = new PromotionActivityMixnickQueryrecordRequest();
req.setBuyerNick("A0BH7uddda661GFV");
req.setAlipayUserId(208811111111L);
req.setSendRecordId(1221122222L);
PromotionActivityMixnickQueryrecordResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
PromotionActivityMixnickQueryrecordRequest req = new PromotionActivityMixnickQueryrecordRequest();
req.BuyerNick = "A0BH7uddda661GFV";
req.AlipayUserId = 208811111111L;
req.SendRecordId = 1221122222L;
PromotionActivityMixnickQueryrecordResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new PromotionActivityMixnickQueryrecordRequest;
$req->setBuyerNick("A0BH7uddda661GFV");
$req->setAlipayUserId("208811111111");
$req->setSendRecordId("1221122222");
$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.promotion.activity.mixnick.queryrecord' \
-d 'partner_id=apidoc' \
-d 'session=e9f3d96a-9ff0-4e72-a174-21abac812dc2' \
-d 'sign=4D0032566A5E497ED7405346ABE7759B' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-25+17%3A55%3A27' \
-d 'v=2.0' \
-d 'alipay_user_id=208811111111' \
-d 'buyer_nick=A0BH7uddda661GFV' \
-d 'send_record_id=1221122222'
# -*- coding: utf-8 -*-
import top.api
req=top.api.PromotionActivityMixnickQueryrecordRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.buyer_nick="A0BH7uddda661GFV"
req.alipay_user_id=208811111111
req.send_record_id=1221122222
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.promotion.activity.mixnick.queryrecord");
add_param(pRequest,"buyer_nick","A0BH7uddda661GFV");
add_param(pRequest,"alipay_user_id","208811111111");
add_param(pRequest,"send_record_id","1221122222");
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.promotion.activity.mixnick.queryrecord', {
'buyer_nick':'A0BH7uddda661GFV',
'alipay_user_id':'208811111111',
'send_record_id':'1221122222'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})