TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripTransferRealnameAuthRequest req = new AlitripTransferRealnameAuthRequest();
req.setNumberType(0L);
req.setCredentialType(0L);
req.setCredentialNo("43x221xxxxxxxxxxx");
req.setPhoneNumber("13607339877/07312222xxx(固话暂时不支持)");
req.setPersonPhoto("审核人正面人像照片");
req.setExtraString("{\"key\":\"value\"}");
req.setName("张三");
req.setPersonType(0L);
AlitripTransferRealnameAuthResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlitripTransferRealnameAuthRequest req = new AlitripTransferRealnameAuthRequest();
req.NumberType = 0L;
req.CredentialType = 0L;
req.CredentialNo = "43x221xxxxxxxxxxx";
req.PhoneNumber = "13607339877/07312222xxx(固话暂时不支持)";
req.PersonPhoto = "审核人正面人像照片";
req.Extra = "{\"key\":\"value\"}";
req.Name = "张三";
req.PersonType = 0L;
AlitripTransferRealnameAuthResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlitripTransferRealnameAuthRequest;
$req->setNumberType("0");
$req->setCredentialType("0");
$req->setCredentialNo("43x221xxxxxxxxxxx");
$req->setPhoneNumber("13607339877/07312222xxx(固话暂时不支持)");
$req->setPersonPhoto("审核人正面人像照片");
$req->setExtra("{\"key\":\"value\"}");
$req->setName("张三");
$req->setPersonType("0");
$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=alitrip.transfer.realname.auth' \
-d 'partner_id=apidoc' \
-d 'sign=5DE931EECEBB4347A4527421E7EE7F9E' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-25+20%3A55%3A02' \
-d 'v=2.0' \
-d 'credential_no=43x221xxxxxxxxxxx' \
-d 'credential_type=0' \
-d 'extra=%7B%5C%22key%5C%22%3A%5C%22value%5C%22%7D' \
-d 'name=%E5%BC%A0%E4%B8%89' \
-d 'number_type=0' \
-d 'person_photo=%E5%AE%A1%E6%A0%B8%E4%BA%BA%E6%AD%A3%E9%9D%A2%E4%BA%BA%E5%83%8F%E7%85%A7%E7%89%87' \
-d 'person_type=0' \
-d 'phone_number=13607339877%2F07312222xxx%28%E5%9B%BA%E8%AF%9D%E6%9A%82%E6%97%B6%E4%B8%8D%E6%94%AF%E6%8C%81%29'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlitripTransferRealnameAuthRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.number_type=0
req.credential_type=0
req.credential_no="43x221xxxxxxxxxxx"
req.phone_number="13607339877/07312222xxx(固话暂时不支持)"
req.person_photo="审核人正面人像照片"
req.extra="{\"key\":\"value\"}"
req.name="张三"
req.person_type=0
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,"alitrip.transfer.realname.auth");
add_param(pRequest,"number_type","0");
add_param(pRequest,"credential_type","0");
add_param(pRequest,"credential_no","43x221xxxxxxxxxxx");
add_param(pRequest,"phone_number","13607339877/07312222xxx(固话暂时不支持)");
add_param(pRequest,"person_photo","审核人正面人像照片");
add_param(pRequest,"extra","{\"key\":\"value\"}");
add_param(pRequest,"name","张三");
add_param(pRequest,"person_type","0");
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('alitrip.transfer.realname.auth', {
'number_type':'0',
'credential_type':'0',
'credential_no':'43x221xxxxxxxxxxx',
'phone_number':'13607339877/07312222xxx(固话暂时不支持)',
'person_photo':'审核人正面人像照片',
'extra':'{\"key\":\"value\"}',
'name':'张三',
'person_type':'0'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})