TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TmallXiaoyuanShareIsvWalletRechargeRequest req = new TmallXiaoyuanShareIsvWalletRechargeRequest();
TmallXiaoyuanShareIsvWalletRechargeRequest.IsvWalletRechargeRequest obj1 = new TmallXiaoyuanShareIsvWalletRechargeRequest.IsvWalletRechargeRequest();
obj1.setIsvOrderId("2077566228803900752");
obj1.setCampusAreaCode(1000L);
obj1.setRechargeAmount(100L);
obj1.setOpenUserId("ou_e8f34c9a2b7d4e5f");
obj1.setBusinessType("CHARGING_STATION");
obj1.setIsv("LITTLE_CHAO");
req.setIsvWalletRechargeRequest(obj1);
TmallXiaoyuanShareIsvWalletRechargeResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
TmallXiaoyuanShareIsvWalletRechargeRequest req = new TmallXiaoyuanShareIsvWalletRechargeRequest();
TmallXiaoyuanShareIsvWalletRechargeRequest.IsvWalletRechargeRequestDomain obj1 = new TmallXiaoyuanShareIsvWalletRechargeRequest.IsvWalletRechargeRequestDomain();
obj1.IsvOrderId = "2077566228803900752";
obj1.CampusAreaCode = 1000L;
obj1.RechargeAmount = 100L;
obj1.OpenUserId = "ou_e8f34c9a2b7d4e5f";
obj1.BusinessType = "CHARGING_STATION";
obj1.Isv = "LITTLE_CHAO";
req.IsvWalletRechargeRequest_ = obj1;
TmallXiaoyuanShareIsvWalletRechargeResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new TmallXiaoyuanShareIsvWalletRechargeRequest;
$isv_wallet_recharge_request = new IsvWalletRechargeRequest;
$isv_wallet_recharge_request->isv_order_id="2077566228803900752";
$isv_wallet_recharge_request->campus_area_code="1000";
$isv_wallet_recharge_request->recharge_amount="100";
$isv_wallet_recharge_request->open_user_id="ou_e8f34c9a2b7d4e5f";
$isv_wallet_recharge_request->business_type="CHARGING_STATION";
$isv_wallet_recharge_request->isv="LITTLE_CHAO";
$req->setIsvWalletRechargeRequest(json_encode($isv_wallet_recharge_request));
$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=tmall.xiaoyuan.share.isv.wallet.recharge' \
-d 'partner_id=apidoc' \
-d 'sign=32ED3271E0262DD66B506A0A69410DD5' \
-d 'sign_method=hmac' \
-d 'timestamp=2026-09-12+23%3A09%3A42' \
-d 'v=2.0' \
-d 'isv_wallet_recharge_request=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.TmallXiaoyuanShareIsvWalletRechargeRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.isv_wallet_recharge_request="数据结构示例JSON格式"
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,"tmall.xiaoyuan.share.isv.wallet.recharge");
add_param(pRequest,"isv_wallet_recharge_request","数据结构JSON示例");
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',
'url': 'http://gw.api.taobao.com/router/rest'
});
client.execute('tmall.xiaoyuan.share.isv.wallet.recharge', {
'isv_wallet_recharge_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})