TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripPartnerMemberLinkRequest req = new AlitripPartnerMemberLinkRequest();
AlitripPartnerMemberLinkRequest.LinkRequest obj1 = new AlitripPartnerMemberLinkRequest.LinkRequest();
obj1.setFliggyUserName("tb111");
obj1.setPartnerMemberId("9123456");
obj1.setSurName("ti");
obj1.setGivenName("feng");
obj1.setBirthday(StringUtils.parseDateTime("1990-01-01 00:00:00"));
obj1.setPartnerMemberStatus("active");
obj1.setRemarks("remarks content");
req.setLinkRequest(obj1);
AlitripPartnerMemberLinkResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlitripPartnerMemberLinkRequest req = new AlitripPartnerMemberLinkRequest();
AlitripPartnerMemberLinkRequest.LinkRequestDomain obj1 = new AlitripPartnerMemberLinkRequest.LinkRequestDomain();
obj1.FliggyUserName = "tb111";
obj1.PartnerMemberId = "9123456";
obj1.SurName = "ti";
obj1.GivenName = "feng";
obj1.Birthday = DateTime.Parse(1990-01-01 00:00:00");
obj1.PartnerMemberStatus = "active";
obj1.Remarks = "remarks content";
req.LinkRequest_ = obj1;
AlitripPartnerMemberLinkResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlitripPartnerMemberLinkRequest;
$link_request = new LinkRequest;
$link_request->fliggy_user_name="tb111";
$link_request->partner_member_id="9123456";
$link_request->sur_name="ti";
$link_request->given_name="feng";
$link_request->birthday="1990-01-01 00:00:00";
$link_request->partner_member_status="active";
$link_request->remarks="remarks content";
$req->setLinkRequest(json_encode($link_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=alitrip.partner.member.link' \
-d 'partner_id=apidoc' \
-d 'sign=CE5A92938E3AB70FDEC9B1606D3C2513' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-03+08%3A06%3A33' \
-d 'v=2.0' \
-d 'link_request=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlitripPartnerMemberLinkRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.link_request=""
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.partner.member.link");
add_param(pRequest,"link_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('alitrip.partner.member.link', {
'link_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})