TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlscCrmSalesLeadsPortraitQueryRequest req = new AlibabaAlscCrmSalesLeadsPortraitQueryRequest();
AlibabaAlscCrmSalesLeadsPortraitQueryRequest.TopLeadsInfoRequest obj1 = new AlibabaAlscCrmSalesLeadsPortraitQueryRequest.TopLeadsInfoRequest();
obj1.setExtInfo("{}");
obj1.setLeadsId("2019474052653524");
obj1.setOutId("2009787");
obj1.setOutType("SHOP");
obj1.setOpportunityId("20191214888");
obj1.setTerritoryCode("keruyun_POS_2019");
req.setParamTopLeadsInfoRequest(obj1);
AlibabaAlscCrmSalesLeadsPortraitQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaAlscCrmSalesLeadsPortraitQueryRequest req = new AlibabaAlscCrmSalesLeadsPortraitQueryRequest();
AlibabaAlscCrmSalesLeadsPortraitQueryRequest.TopLeadsInfoRequestDomain obj1 = new AlibabaAlscCrmSalesLeadsPortraitQueryRequest.TopLeadsInfoRequestDomain();
obj1.ExtInfo = "{}";
obj1.LeadsId = "2019474052653524";
obj1.OutId = "2009787";
obj1.OutType = "SHOP";
obj1.OpportunityId = "20191214888";
obj1.TerritoryCode = "keruyun_POS_2019";
req.ParamTopLeadsInfoRequest_ = obj1;
AlibabaAlscCrmSalesLeadsPortraitQueryResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaAlscCrmSalesLeadsPortraitQueryRequest;
$param_top_leads_info_request = new TopLeadsInfoRequest;
$param_top_leads_info_request->ext_info="{}";
$param_top_leads_info_request->leads_id="2019474052653524";
$param_top_leads_info_request->out_id="2009787";
$param_top_leads_info_request->out_type="SHOP";
$param_top_leads_info_request->opportunity_id="20191214888";
$param_top_leads_info_request->territory_code="keruyun_POS_2019";
$req->setParamTopLeadsInfoRequest(json_encode($param_top_leads_info_request));
$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.portrait.query' \
-d 'partner_id=apidoc' \
-d 'sign=5FD4AB136E8C9C39FB8A7496E037A582' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-19+15%3A03%3A10' \
-d 'v=2.0' \
-d 'param_top_leads_info_request=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaAlscCrmSalesLeadsPortraitQueryRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.param_top_leads_info_request=""
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.portrait.query");
add_param(pRequest,"param_top_leads_info_request","数据结构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.portrait.query', {
'param_top_leads_info_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})