TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlscCrmCardBatchSellRequest req = new AlibabaAlscCrmCardBatchSellRequest();
AlibabaAlscCrmCardBatchSellRequest.BatchOpenCardOpenReq obj1 = new AlibabaAlscCrmCardBatchSellRequest.BatchOpenCardOpenReq();
obj1.setPhysicalCardIds("111,222,333");
obj1.setOutBrandId("33959");
obj1.setRequestId("566754323224");
obj1.setBrandId("3396912");
obj1.setOutShopId("35663464");
obj1.setShopId("4564334");
obj1.setOperatorId("2312332");
req.setParamBatchOpenCardOpenReq(obj1);
AlibabaAlscCrmCardBatchSellResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaAlscCrmCardBatchSellRequest req = new AlibabaAlscCrmCardBatchSellRequest();
AlibabaAlscCrmCardBatchSellRequest.BatchOpenCardOpenReqDomain obj1 = new AlibabaAlscCrmCardBatchSellRequest.BatchOpenCardOpenReqDomain();
obj1.PhysicalCardIds = "111,222,333";
obj1.OutBrandId = "33959";
obj1.RequestId = "566754323224";
obj1.BrandId = "3396912";
obj1.OutShopId = "35663464";
obj1.ShopId = "4564334";
obj1.OperatorId = "2312332";
req.ParamBatchOpenCardOpenReq_ = obj1;
AlibabaAlscCrmCardBatchSellResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaAlscCrmCardBatchSellRequest;
$param_batch_open_card_open_req = new BatchOpenCardOpenReq;
$param_batch_open_card_open_req->physical_card_ids="111,222,333";
$param_batch_open_card_open_req->out_brand_id="33959";
$param_batch_open_card_open_req->request_id="566754323224";
$param_batch_open_card_open_req->brand_id="3396912";
$param_batch_open_card_open_req->out_shop_id="35663464";
$param_batch_open_card_open_req->shop_id="4564334";
$param_batch_open_card_open_req->operator_id="2312332";
$req->setParamBatchOpenCardOpenReq(json_encode($param_batch_open_card_open_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.crm.card.batch.sell' \
-d 'partner_id=apidoc' \
-d 'sign=4B2C5029178FF112DAAF9A4D1DCE85FA' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-19+15%3A18%3A23' \
-d 'v=2.0' \
-d 'param_batch_open_card_open_req=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaAlscCrmCardBatchSellRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.param_batch_open_card_open_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.crm.card.batch.sell");
add_param(pRequest,"param_batch_open_card_open_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.crm.card.batch.sell', {
'param_batch_open_card_open_req':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})