TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AppleNewuserSignNotifyRequest req = new AppleNewuserSignNotifyRequest();
req.setResultCode("00");
req.setResultMsg("处理成功");
AppleNewuserSignNotifyRequest.AppleTopNewSignNotifyDo obj1 = new AppleNewuserSignNotifyRequest.AppleTopNewSignNotifyDo();
obj1.setCardNo("GCA1234567890123");
obj1.setTut("d32rd23d2");
obj1.setOrderNo("201760308888961613");
obj1.setMemo("{attribute:235234}");
obj1.setUserNo("23523535");
obj1.setUci("ali.201760308888961613");
obj1.setMai("34rt34wtf");
obj1.setQueryId("34f4334w4few");
req.setMainData(obj1);
AppleNewuserSignNotifyResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AppleNewuserSignNotifyRequest req = new AppleNewuserSignNotifyRequest();
req.ResultCode = "00";
req.ResultMsg = "处理成功";
AppleNewuserSignNotifyRequest.AppleTopNewSignNotifyDoDomain obj1 = new AppleNewuserSignNotifyRequest.AppleTopNewSignNotifyDoDomain();
obj1.CardNo = "GCA1234567890123";
obj1.Tut = "d32rd23d2";
obj1.OrderNo = "201760308888961613";
obj1.Memo = "{attribute:235234}";
obj1.UserNo = "23523535";
obj1.Uci = "ali.201760308888961613";
obj1.Mai = "34rt34wtf";
obj1.QueryId = "34f4334w4few";
req.MainData_ = obj1;
AppleNewuserSignNotifyResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AppleNewuserSignNotifyRequest;
$req->setResultCode("00");
$req->setResultMsg("处理成功");
$main_data = new AppleTopNewSignNotifyDo;
$main_data->card_no="GCA1234567890123";
$main_data->tut="d32rd23d2";
$main_data->order_no="201760308888961613";
$main_data->memo="{attribute:235234}";
$main_data->user_no="23523535";
$main_data->uci="ali.201760308888961613";
$main_data->mai="34rt34wtf";
$main_data->query_id="34f4334w4few";
$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.newuser.sign.notify' \
-d 'partner_id=apidoc' \
-d 'sign=6350F17BDFFEBC394FFC8A1ADA6776D2' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-06-07+10%3A15%3A01' \
-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.AppleNewuserSignNotifyRequest(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.newuser.sign.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.newuser.sign.notify', {
'result_code':'00',
'result_msg':'处理成功',
'main_data':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})