TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlscSaasDishShopBindRequest req = new AlibabaAlscSaasDishShopBindRequest();
AlibabaAlscSaasDishShopBindRequest.BindShopReq obj1 = new AlibabaAlscSaasDishShopBindRequest.BindShopReq();
obj1.setBrandId("12312");
obj1.setMerchantId("123123");
obj1.setOrgId("21312");
obj1.setShopIdList(""213"");
obj1.setUseOutBizId(true);
obj1.setUseOutOrgId(false);
req.setBindShopReq(obj1);
AlibabaAlscSaasDishShopBindResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaAlscSaasDishShopBindRequest req = new AlibabaAlscSaasDishShopBindRequest();
AlibabaAlscSaasDishShopBindRequest.BindShopReqDomain obj1 = new AlibabaAlscSaasDishShopBindRequest.BindShopReqDomain();
obj1.BrandId = "12312";
obj1.MerchantId = "123123";
obj1.OrgId = "21312";
obj1.ShopIdList = ""213"";
obj1.UseOutBizId = true;
obj1.UseOutOrgId = false;
req.BindShopReq_ = obj1;
AlibabaAlscSaasDishShopBindResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaAlscSaasDishShopBindRequest;
$bind_shop_req = new BindShopReq;
$bind_shop_req->brand_id="12312";
$bind_shop_req->merchant_id="123123";
$bind_shop_req->org_id="21312";
$bind_shop_req->shop_id_list="[\"213\"]";
$bind_shop_req->use_out_biz_id="true";
$bind_shop_req->use_out_org_id="false";
$req->setBindShopReq(json_encode($bind_shop_req));
$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.alsc.saas.dish.shop.bind' \
-d 'partner_id=apidoc' \
-d 'sign=DE4A70AF85D121723B674484BF483474' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-06-15+12%3A19%3A43' \
-d 'v=2.0' \
-d 'bind_shop_req=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaAlscSaasDishShopBindRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.bind_shop_req=""
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.alsc.saas.dish.shop.bind");
add_param(pRequest,"bind_shop_req","数据结构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('alibaba.alsc.saas.dish.shop.bind', {
'bind_shop_req':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})