TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlscCrmSalesLeadsActiveRequest req = new AlibabaAlscCrmSalesLeadsActiveRequest();
AlibabaAlscCrmSalesLeadsActiveRequest.TopLeadsActiveRequest obj1 = new AlibabaAlscCrmSalesLeadsActiveRequest.TopLeadsActiveRequest();
obj1.setExtInfo("{}");
obj1.setLeadsId("2019474052653524");
obj1.setMemo("用于同步");
obj1.setOperatorId("kyr13386");
obj1.setOperatorName("王五");
obj1.setOutId("2009787");
obj1.setOutType("SHOP");
obj1.setReqId("j37b4l6lq0qz2e");
obj1.setTerritoryCode("keruyun_POS_2019");
obj1.setLeadsType("KYR_POS");
obj1.setStrategyCodeList("LEADS_RECOMMEND");
req.setParam(obj1);
AlibabaAlscCrmSalesLeadsActiveResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaAlscCrmSalesLeadsActiveRequest req = new AlibabaAlscCrmSalesLeadsActiveRequest();
AlibabaAlscCrmSalesLeadsActiveRequest.TopLeadsActiveRequestDomain obj1 = new AlibabaAlscCrmSalesLeadsActiveRequest.TopLeadsActiveRequestDomain();
obj1.ExtInfo = "{}";
obj1.LeadsId = "2019474052653524";
obj1.Memo = "用于同步";
obj1.OperatorId = "kyr13386";
obj1.OperatorName = "王五";
obj1.OutId = "2009787";
obj1.OutType = "SHOP";
obj1.ReqId = "j37b4l6lq0qz2e";
obj1.TerritoryCode = "keruyun_POS_2019";
obj1.LeadsType = "KYR_POS";
obj1.StrategyCodeList = "LEADS_RECOMMEND";
req.Param_ = obj1;
AlibabaAlscCrmSalesLeadsActiveResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaAlscCrmSalesLeadsActiveRequest;
$param = new TopLeadsActiveRequest;
$param->ext_info="{}";
$param->leads_id="2019474052653524";
$param->memo="用于同步";
$param->operator_id="kyr13386";
$param->operator_name="王五";
$param->out_id="2009787";
$param->out_type="SHOP";
$param->req_id="j37b4l6lq0qz2e";
$param->territory_code="keruyun_POS_2019";
$param->leads_type="KYR_POS";
$param->strategy_code_list="LEADS_RECOMMEND";
$req->setParam(json_encode($param));
$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.sales.leads.active' \
-d 'partner_id=apidoc' \
-d 'sign=52E8C37836A22C47C5F93FAE78282581' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-05+19%3A24%3A57' \
-d 'v=2.0' \
-d 'param=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaAlscCrmSalesLeadsActiveRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.param=""
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.sales.leads.active");
add_param(pRequest,"param","数据结构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.sales.leads.active', {
'param':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})