TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaCloudgameTradeplatformApplysubscriberefundRequest req = new AlibabaCloudgameTradeplatformApplysubscriberefundRequest();
AlibabaCloudgameTradeplatformApplysubscriberefundRequest.SubscribeRefundApplyRequest obj1 = new AlibabaCloudgameTradeplatformApplysubscriberefundRequest.SubscribeRefundApplyRequest();
obj1.setUserCountry("CHINA");
obj1.setRefundScene("1");
obj1.setRefundOrderId("1");
obj1.setTenantId(1L);
obj1.setSubscribeId("1");
obj1.setCurrency("CNY");
obj1.setApplyRefundTime(1L);
obj1.setRefundAmount(1L);
obj1.setOrderId("1");
obj1.setRefundSerialId("1");
obj1.setIdempotentCode("1");
req.setSubscribeRefundApplyRequest(obj1);
AlibabaCloudgameTradeplatformApplysubscriberefundResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaCloudgameTradeplatformApplysubscriberefundRequest req = new AlibabaCloudgameTradeplatformApplysubscriberefundRequest();
AlibabaCloudgameTradeplatformApplysubscriberefundRequest.SubscribeRefundApplyRequestDomain obj1 = new AlibabaCloudgameTradeplatformApplysubscriberefundRequest.SubscribeRefundApplyRequestDomain();
obj1.UserCountry = "CHINA";
obj1.RefundScene = "1";
obj1.RefundOrderId = "1";
obj1.TenantId = 1L;
obj1.SubscribeId = "1";
obj1.Currency = "CNY";
obj1.ApplyRefundTime = 1L;
obj1.RefundAmount = 1L;
obj1.OrderId = "1";
obj1.RefundSerialId = "1";
obj1.IdempotentCode = "1";
req.SubscribeRefundApplyRequest_ = obj1;
AlibabaCloudgameTradeplatformApplysubscriberefundResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaCloudgameTradeplatformApplysubscriberefundRequest;
$subscribe_refund_apply_request = new SubscribeRefundApplyRequest;
$subscribe_refund_apply_request->user_country="CHINA";
$subscribe_refund_apply_request->refund_scene="1";
$subscribe_refund_apply_request->refund_order_id="1";
$subscribe_refund_apply_request->tenant_id="1";
$subscribe_refund_apply_request->subscribe_id="1";
$subscribe_refund_apply_request->currency="CNY";
$subscribe_refund_apply_request->apply_refund_time="1";
$subscribe_refund_apply_request->refund_amount="1";
$subscribe_refund_apply_request->order_id="1";
$subscribe_refund_apply_request->refund_serial_id="1";
$subscribe_refund_apply_request->idempotent_code="1";
$req->setSubscribeRefundApplyRequest(json_encode($subscribe_refund_apply_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=alibaba.cloudgame.tradeplatform.applysubscriberefund' \
-d 'partner_id=apidoc' \
-d 'sign=E05D3AD475A0D2321055302C1E6C1F2E' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-30+16%3A51%3A34' \
-d 'v=2.0' \
-d 'subscribe_refund_apply_request=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaCloudgameTradeplatformApplysubscriberefundRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.subscribe_refund_apply_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,"alibaba.cloudgame.tradeplatform.applysubscriberefund");
add_param(pRequest,"subscribe_refund_apply_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',
'REST_URL': 'http://gw.api.taobao.com/router/rest'
});
client.execute('alibaba.cloudgame.tradeplatform.applysubscriberefund', {
'subscribe_refund_apply_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})