TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
SungariJgbInnerCompanyCreditLoseDataQueryRequest req = new SungariJgbInnerCompanyCreditLoseDataQueryRequest();
req.setAppName("分配的appKey");
req.setAppSecret("分配的appSecret");
req.setEntName("企业名称");
req.setPlatformType(0L);
req.setRegNo("注册号");
req.setUniSocialCredit("91330782062020568L");
SungariJgbInnerCompanyCreditLoseDataQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
SungariJgbInnerCompanyCreditLoseDataQueryRequest req = new SungariJgbInnerCompanyCreditLoseDataQueryRequest();
req.AppName = "分配的appKey";
req.AppSecret = "分配的appSecret";
req.EntName = "企业名称";
req.PlatformType = 0L;
req.RegNo = "注册号";
req.UniSocialCredit = "91330782062020568L";
SungariJgbInnerCompanyCreditLoseDataQueryResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new SungariJgbInnerCompanyCreditLoseDataQueryRequest;
$req->setAppName("分配的appKey");
$req->setAppSecret("分配的appSecret");
$req->setEntName("企业名称");
$req->setPlatformType("0");
$req->setRegNo("注册号");
$req->setUniSocialCredit("91330782062020568L");
$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=taobao.sungari.jgb.inner.company.credit.lose.data.query' \
-d 'partner_id=apidoc' \
-d 'sign=455B8EBD8607A11E0D08666888DADE14' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-23+17%3A38%3A52' \
-d 'v=2.0' \
-d 'app_name=%E5%88%86%E9%85%8D%E7%9A%84appKey' \
-d 'app_secret=%E5%88%86%E9%85%8D%E7%9A%84appSecret' \
-d 'ent_name=%E4%BC%81%E4%B8%9A%E5%90%8D%E7%A7%B0' \
-d 'platform_type=0' \
-d 'reg_no=%E6%B3%A8%E5%86%8C%E5%8F%B7' \
-d 'uni_social_credit=91330782062020568L'
# -*- coding: utf-8 -*-
import top.api
req=top.api.SungariJgbInnerCompanyCreditLoseDataQueryRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.app_name="分配的appKey"
req.app_secret="分配的appSecret"
req.ent_name="企业名称"
req.platform_type=0
req.reg_no="注册号"
req.uni_social_credit="91330782062020568L"
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,"taobao.sungari.jgb.inner.company.credit.lose.data.query");
add_param(pRequest,"app_name","分配的appKey");
add_param(pRequest,"app_secret","分配的appSecret");
add_param(pRequest,"ent_name","企业名称");
add_param(pRequest,"platform_type","0");
add_param(pRequest,"reg_no","注册号");
add_param(pRequest,"uni_social_credit","91330782062020568L");
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('taobao.sungari.jgb.inner.company.credit.lose.data.query', {
'app_name':'分配的appKey',
'app_secret':'分配的appSecret',
'ent_name':'企业名称',
'platform_type':'0',
'reg_no':'注册号',
'uni_social_credit':'91330782062020568L'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})