TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAliqinFlowWalletChargeRequest req = new AlibabaAliqinFlowWalletChargeRequest();
req.setPhoneNum("13928372736");
req.setReason("充值");
req.setGradeId("3");
req.setOutRechargeId("123456");
req.setChannelId("5");
AlibabaAliqinFlowWalletChargeResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaAliqinFlowWalletChargeRequest req = new AlibabaAliqinFlowWalletChargeRequest();
req.PhoneNum = "13928372736";
req.Reason = "充值";
req.GradeId = "3";
req.OutRechargeId = "123456";
req.ChannelId = "5";
AlibabaAliqinFlowWalletChargeResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaAliqinFlowWalletChargeRequest;
$req->setPhoneNum("13928372736");
$req->setReason("充值");
$req->setGradeId("3");
$req->setOutRechargeId("123456");
$req->setChannelId("5");
$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=alibaba.aliqin.flow.wallet.charge' \
-d 'partner_id=apidoc' \
-d 'session=f9c8a7f6-7feb-4577-a9d3-5e4341e5c118' \
-d 'sign=C096617A5C9D9B7D36A77686EB71F9BF' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-06+13%3A16%3A17' \
-d 'v=2.0' \
-d 'channel_id=5' \
-d 'grade_id=3' \
-d 'out_recharge_id=123456' \
-d 'phone_num=13928372736' \
-d 'reason=%E5%85%85%E5%80%BC'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaAliqinFlowWalletChargeRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.phone_num="13928372736"
req.reason="充值"
req.grade_id="3"
req.out_recharge_id="123456"
req.channel_id="5"
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,"alibaba.aliqin.flow.wallet.charge");
add_param(pRequest,"phone_num","13928372736");
add_param(pRequest,"reason","充值");
add_param(pRequest,"grade_id","3");
add_param(pRequest,"out_recharge_id","123456");
add_param(pRequest,"channel_id","5");
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('alibaba.aliqin.flow.wallet.charge', {
'phone_num':'13928372736',
'reason':'充值',
'grade_id':'3',
'out_recharge_id':'123456',
'channel_id':'5'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})