TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TmallAlihouseCustomerLaikeWechatRelationSynsRequest req = new TmallAlihouseCustomerLaikeWechatRelationSynsRequest();
TmallAlihouseCustomerLaikeWechatRelationSynsRequest.WeChatQuery obj1 = new TmallAlihouseCustomerLaikeWechatRelationSynsRequest.WeChatQuery();
obj1.setOpenUid("sdfvbnhgfdsxcvbgfd2345");
obj1.setBizType(1L);
obj1.setMobilePhone("13122801032");
obj1.setBindType(1L);
req.setWeChatQuery(obj1);
TmallAlihouseCustomerLaikeWechatRelationSynsResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
TmallAlihouseCustomerLaikeWechatRelationSynsRequest req = new TmallAlihouseCustomerLaikeWechatRelationSynsRequest();
TmallAlihouseCustomerLaikeWechatRelationSynsRequest.WeChatQueryDomain obj1 = new TmallAlihouseCustomerLaikeWechatRelationSynsRequest.WeChatQueryDomain();
obj1.OpenUid = "sdfvbnhgfdsxcvbgfd2345";
obj1.BizType = 1L;
obj1.MobilePhone = "13122801032";
obj1.BindType = 1L;
req.WeChatQuery_ = obj1;
TmallAlihouseCustomerLaikeWechatRelationSynsResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new TmallAlihouseCustomerLaikeWechatRelationSynsRequest;
$we_chat_query = new WeChatQuery;
$we_chat_query->open_uid="sdfvbnhgfdsxcvbgfd2345";
$we_chat_query->biz_type="1";
$we_chat_query->mobile_phone="13122801032";
$we_chat_query->bind_type="1";
$req->setWeChatQuery(json_encode($we_chat_query));
$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=tmall.alihouse.customer.laike.wechat.relation.syns' \
-d 'partner_id=apidoc' \
-d 'sign=321737AD89676B6BA72E303C97663E65' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-06-18+14%3A57%3A57' \
-d 'v=2.0' \
-d 'we_chat_query=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.TmallAlihouseCustomerLaikeWechatRelationSynsRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.we_chat_query="数据结构示例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,"tmall.alihouse.customer.laike.wechat.relation.syns");
add_param(pRequest,"we_chat_query","数据结构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('tmall.alihouse.customer.laike.wechat.relation.syns', {
'we_chat_query':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})