TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAliqinFlowWalletChargeRuleRequest req = new AlibabaAliqinFlowWalletChargeRuleRequest();
req.setPhoneNum("13815928384");
req.setReason("充值");
req.setGradeId("10010");
req.setOutRechargeId("9b54-10499f9ae713");
req.setChannelId("0010010_TEST_8E71DC831AAD2A7A");
AlibabaAliqinFlowWalletChargeRuleResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaAliqinFlowWalletChargeRuleRequest req = new AlibabaAliqinFlowWalletChargeRuleRequest();
req.PhoneNum = "13815928384";
req.Reason = "充值";
req.GradeId = "10010";
req.OutRechargeId = "9b54-10499f9ae713";
req.ChannelId = "0010010_TEST_8E71DC831AAD2A7A";
AlibabaAliqinFlowWalletChargeRuleResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaAliqinFlowWalletChargeRuleRequest;
$req->setPhoneNum("13815928384");
$req->setReason("充值");
$req->setGradeId("10010");
$req->setOutRechargeId("9b54-10499f9ae713");
$req->setChannelId("0010010_TEST_8E71DC831AAD2A7A");
$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.rule' \
-d 'partner_id=apidoc' \
-d 'session=0fcc45c4-eb97-423d-a8ee-323026955e9a' \
-d 'sign=4D69ED85DB2AE48AF0646F63A1B348E4' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-06+13%3A03%3A36' \
-d 'v=2.0' \
-d 'channel_id=0010010_TEST_8E71DC831AAD2A7A' \
-d 'grade_id=10010' \
-d 'out_recharge_id=9b54-10499f9ae713' \
-d 'phone_num=13815928384' \
-d 'reason=%E5%85%85%E5%80%BC'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaAliqinFlowWalletChargeRuleRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.phone_num="13815928384"
req.reason="充值"
req.grade_id="10010"
req.out_recharge_id="9b54-10499f9ae713"
req.channel_id="0010010_TEST_8E71DC831AAD2A7A"
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.rule");
add_param(pRequest,"phone_num","13815928384");
add_param(pRequest,"reason","充值");
add_param(pRequest,"grade_id","10010");
add_param(pRequest,"out_recharge_id","9b54-10499f9ae713");
add_param(pRequest,"channel_id","0010010_TEST_8E71DC831AAD2A7A");
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.rule', {
'phone_num':'13815928384',
'reason':'充值',
'grade_id':'10010',
'out_recharge_id':'9b54-10499f9ae713',
'channel_id':'0010010_TEST_8E71DC831AAD2A7A'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})