TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaGscDmsAgentConfigGetRequest req = new AlibabaGscDmsAgentConfigGetRequest();
AlibabaGscDmsAgentConfigGetRequest.AgentConfigQueryRequest obj1 = new AlibabaGscDmsAgentConfigGetRequest.AgentConfigQueryRequest();
obj1.setCategory("TIANMAOJINGLINGCHENGPIN");
obj1.setCustomerCodeList(""BP000929","BP000527"");
obj1.setOperator("1");
obj1.setOutCustomerCodeList("");
obj1.setRequestId("12345rtew21");
obj1.setTenant("ailab");
obj1.setSaleLoginName("linxiang.lx");
req.setParamAgentConfigQueryRequest(obj1);
AlibabaGscDmsAgentConfigGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaGscDmsAgentConfigGetRequest req = new AlibabaGscDmsAgentConfigGetRequest();
AlibabaGscDmsAgentConfigGetRequest.AgentConfigQueryRequestDomain obj1 = new AlibabaGscDmsAgentConfigGetRequest.AgentConfigQueryRequestDomain();
obj1.Category = "TIANMAOJINGLINGCHENGPIN";
obj1.CustomerCodeList = ""BP000929","BP000527"";
obj1.Operator = "1";
obj1.OutCustomerCodeList = "";
obj1.RequestId = "12345rtew21";
obj1.Tenant = "ailab";
obj1.SaleLoginName = "linxiang.lx";
req.ParamAgentConfigQueryRequest_ = obj1;
AlibabaGscDmsAgentConfigGetResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaGscDmsAgentConfigGetRequest;
$param_agent_config_query_request = new AgentConfigQueryRequest;
$param_agent_config_query_request->category="TIANMAOJINGLINGCHENGPIN";
$param_agent_config_query_request->customer_code_list="[\"BP000929\",\"BP000527\"]";
$param_agent_config_query_request->operator="1";
$param_agent_config_query_request->out_customer_code_list="[]";
$param_agent_config_query_request->request_id="12345rtew21";
$param_agent_config_query_request->tenant="ailab";
$param_agent_config_query_request->sale_login_name="linxiang.lx";
$req->setParamAgentConfigQueryRequest(json_encode($param_agent_config_query_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.gsc.dms.agent.config.get' \
-d 'partner_id=apidoc' \
-d 'sign=92BA888AEB529B1C9705AEA319DB19F6' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-06-19+06%3A55%3A46' \
-d 'v=2.0' \
-d 'param_agent_config_query_request=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaGscDmsAgentConfigGetRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.param_agent_config_query_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.gsc.dms.agent.config.get");
add_param(pRequest,"param_agent_config_query_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.gsc.dms.agent.config.get', {
'param_agent_config_query_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})