TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AppleOlduserChargeNotifyRequest req = new AppleOlduserChargeNotifyRequest();
req.setResultCode("00");
req.setResultMsg("处理成功");
AppleOlduserChargeNotifyRequest.AppleTopOldSignNotifyDo obj1 = new AppleOlduserChargeNotifyRequest.AppleTopOldSignNotifyDo();
obj1.setCardNo("GCA1234567890123");
obj1.setGoodsId("6923127360045");
obj1.setOrderNo("201760308888961613");
obj1.setMemo("{attribute:235234}");
obj1.setFacePrice("5000");
obj1.setGatewayOrderNo("zhxgw58324987983");
req.setMainData(obj1);
AppleOlduserChargeNotifyResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AppleOlduserChargeNotifyRequest req = new AppleOlduserChargeNotifyRequest();
req.ResultCode = "00";
req.ResultMsg = "处理成功";
AppleOlduserChargeNotifyRequest.AppleTopOldSignNotifyDoDomain obj1 = new AppleOlduserChargeNotifyRequest.AppleTopOldSignNotifyDoDomain();
obj1.CardNo = "GCA1234567890123";
obj1.GoodsId = "6923127360045";
obj1.OrderNo = "201760308888961613";
obj1.Memo = "{attribute:235234}";
obj1.FacePrice = "5000";
obj1.GatewayOrderNo = "zhxgw58324987983";
req.MainData_ = obj1;
AppleOlduserChargeNotifyResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AppleOlduserChargeNotifyRequest;
$req->setResultCode("00");
$req->setResultMsg("处理成功");
$main_data = new AppleTopOldSignNotifyDo;
$main_data->card_no="GCA1234567890123";
$main_data->goods_id="6923127360045";
$main_data->order_no="201760308888961613";
$main_data->memo="{attribute:235234}";
$main_data->face_price="5000";
$main_data->gateway_order_no="zhxgw58324987983";
$req->setMainData(json_encode($main_data));
$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=taobao.apple.olduser.charge.notify' \
-d 'partner_id=apidoc' \
-d 'sign=1D0D34BAD41D27D6EE555F07C2AB67DB' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-06-07+10%3A19%3A48' \
-d 'v=2.0' \
-d 'main_data=null' \
-d 'result_code=00' \
-d 'result_msg=%E5%A4%84%E7%90%86%E6%88%90%E5%8A%9F'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AppleOlduserChargeNotifyRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.result_code="00"
req.result_msg="处理成功"
req.main_data=""
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,"taobao.apple.olduser.charge.notify");
add_param(pRequest,"result_code","00");
add_param(pRequest,"result_msg","处理成功");
add_param(pRequest,"main_data","数据结构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('taobao.apple.olduser.charge.notify', {
'result_code':'00',
'result_msg':'处理成功',
'main_data':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})