QimenCloudClient client = new DefaultQimenCloudClient(url, appkey, secret);
TaobaoAppleOlduserPreauthenticateRequest req = new TaobaoAppleOlduserPreauthenticateRequest();
req.setPaymentWay("804");
req.setChannelId("2102002");
req.setQueryId("ef2fwsd2342");
req.setUserNo("2629488481");
req.setUT("33wefc3wf");
req.setGoodsId("41362366065");
req.setFacePrice("120");
req.setUnitPrice("120");
req.setMemo("{attribute:123123}");
req.setVersion("2.0");
req.setMerchantId("32423432");
TaobaoAppleOlduserPreauthenticateResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
TaobaoAppleOlduserPreauthenticateRequest req = new TaobaoAppleOlduserPreauthenticateRequest();
req.PaymentWay = "804";
req.ChannelId = "2102002";
req.QueryId = "ef2fwsd2342";
req.UserNo = "2629488481";
req.UT = "33wefc3wf";
req.GoodsId = "41362366065";
req.FacePrice = "120";
req.UnitPrice = "120";
req.Memo = "{attribute:123123}";
req.Version = "2.0";
req.MerchantId = "32423432";
TaobaoAppleOlduserPreauthenticateResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new TaobaoAppleOlduserPreauthenticateRequest;
$req->setPaymentWay("804");
$req->setChannelId("2102002");
$req->setQueryId("ef2fwsd2342");
$req->setUserNo("2629488481");
$req->setUT("33wefc3wf");
$req->setGoodsId("41362366065");
$req->setFacePrice("120");
$req->setUnitPrice("120");
$req->setMemo("{attribute:123123}");
$req->setVersion("2.0");
$req->setMerchantId("32423432");
$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=qimen.taobao.apple.olduser.preauthenticate' \
-d 'partner_id=apidoc' \
-d 'sign=D066270432AFDAA5E0FD85A76B70E046' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-06-07+10%3A31%3A35' \
-d 'v=2.0' \
-d 'TUT=33wefc3wf' \
-d 'channelId=2102002' \
-d 'facePrice=120' \
-d 'goodsId=41362366065' \
-d 'memo=%7Battribute%3A123123%7D' \
-d 'merchantId=32423432' \
-d 'paymentWay=804' \
-d 'queryId=ef2fwsd2342' \
-d 'unitPrice=120' \
-d 'userNo=2629488481' \
-d 'version=2.0'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AobaoAppleOlduserPreauthenticateRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.paymentWay="804"
req.channelId="2102002"
req.queryId="ef2fwsd2342"
req.userNo="2629488481"
req.TUT="33wefc3wf"
req.goodsId="41362366065"
req.facePrice="120"
req.unitPrice="120"
req.memo="{attribute:123123}"
req.version="2.0"
req.merchantId="32423432"
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,"qimen.taobao.apple.olduser.preauthenticate");
add_param(pRequest,"paymentWay","804");
add_param(pRequest,"channelId","2102002");
add_param(pRequest,"queryId","ef2fwsd2342");
add_param(pRequest,"userNo","2629488481");
add_param(pRequest,"TUT","33wefc3wf");
add_param(pRequest,"goodsId","41362366065");
add_param(pRequest,"facePrice","120");
add_param(pRequest,"unitPrice","120");
add_param(pRequest,"memo","{attribute:123123}");
add_param(pRequest,"version","2.0");
add_param(pRequest,"merchantId","32423432");
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('qimen.taobao.apple.olduser.preauthenticate', {
'paymentWay':'804',
'channelId':'2102002',
'queryId':'ef2fwsd2342',
'userNo':'2629488481',
'TUT':'33wefc3wf',
'goodsId':'41362366065',
'facePrice':'120',
'unitPrice':'120',
'memo':'{attribute:123123}',
'version':'2.0',
'merchantId':'32423432'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})