TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthDentalItemBindRequest req = new AlibabaAlihealthDentalItemBindRequest();
List<AlibabaAlihealthDentalItemBindRequest.StoreItemRelRequest> list2 = new ArrayList<AlibabaAlihealthDentalItemBindRequest.StoreItemRelRequest>();
AlibabaAlihealthDentalItemBindRequest.StoreItemRelRequest obj3 = new AlibabaAlihealthDentalItemBindRequest.StoreItemRelRequest();
list2.add(obj3);
obj3.setSpStoreId("12");
obj3.setSpItemId("12");
obj3.setItemId(1L);
obj3.setStoreId(12L);
obj3.setNight(1L);
req.setBindList(list2);
req.setType(1L);
AlibabaAlihealthDentalItemBindResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaAlihealthDentalItemBindRequest req = new AlibabaAlihealthDentalItemBindRequest();
List<AlibabaAlihealthDentalItemBindRequest.StoreItemRelRequestDomain> list2 = new List<AlibabaAlihealthDentalItemBindRequest.StoreItemRelRequestDomain>();
AlibabaAlihealthDentalItemBindRequest.StoreItemRelRequestDomain obj3 = new AlibabaAlihealthDentalItemBindRequest.StoreItemRelRequestDomain();
list2.Add(obj3);
obj3.SpStoreId = "12";
obj3.SpItemId = "12";
obj3.ItemId = 1L;
obj3.StoreId = 12L;
obj3.Night = 1L;
req.BindList_ = list2;
req.Type = 1L;
AlibabaAlihealthDentalItemBindResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaAlihealthDentalItemBindRequest;
$bind_list = new StoreItemRelRequest;
$bind_list->sp_store_id="12";
$bind_list->sp_item_id="12";
$bind_list->item_id="1";
$bind_list->store_id="12";
$bind_list->night="1";
$req->setBindList(json_encode($bind_list));
$req->setType("1");
$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=alibaba.alihealth.dental.item.bind' \
-d 'partner_id=apidoc' \
-d 'sign=E3C2AB7038FEC193FF72843C0A7878D5' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-29+16%3A08%3A27' \
-d 'v=2.0' \
-d 'bind_list=null' \
-d 'type=1'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaAlihealthDentalItemBindRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.bind_list=""
req.type=1
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,"alibaba.alihealth.dental.item.bind");
add_param(pRequest,"bind_list","数据结构JSON示例");
add_param(pRequest,"type","1");
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('alibaba.alihealth.dental.item.bind', {
'bind_list':'数据结构JSON示例',
'type':'1'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})