TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAscpScfSupplierCreditApplyResultFeedRequest req = new AlibabaAscpScfSupplierCreditApplyResultFeedRequest();
AlibabaAscpScfSupplierCreditApplyResultFeedRequest.ScfGatewayRequest obj1 = new AlibabaAscpScfSupplierCreditApplyResultFeedRequest.ScfGatewayRequest();
AlibabaAscpScfSupplierCreditApplyResultFeedRequest.ScfGatewayRequest obj2 = new AlibabaAscpScfSupplierCreditApplyResultFeedRequest.ScfGatewayRequest();
obj2.setBizCode("TMCS");
obj2.setSupplierCompanyId("500001000030687");
obj2.setFinanceId("1234556678");
obj2.setApproved(true);
obj2.setPreCreditAmount("12344.45");
obj2.setDrawWaterLevelAmount("23456.78");
obj2.setRemark("授信通过");
obj1.setParams(obj2);
req.setParamScfGatewayRequest(obj1);
AlibabaAscpScfSupplierCreditApplyResultFeedResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaAscpScfSupplierCreditApplyResultFeedRequest req = new AlibabaAscpScfSupplierCreditApplyResultFeedRequest();
AlibabaAscpScfSupplierCreditApplyResultFeedRequest.ScfGatewayRequestDomain obj1 = new AlibabaAscpScfSupplierCreditApplyResultFeedRequest.ScfGatewayRequestDomain();
AlibabaAscpScfSupplierCreditApplyResultFeedRequest.ScfGatewayRequestDomain obj2 = new AlibabaAscpScfSupplierCreditApplyResultFeedRequest.ScfGatewayRequestDomain();
obj2.BizCode = "TMCS";
obj2.SupplierCompanyId = "500001000030687";
obj2.FinanceId = "1234556678";
obj2.Approved = true;
obj2.PreCreditAmount = "12344.45";
obj2.DrawWaterLevelAmount = "23456.78";
obj2.Remark = "授信通过";
obj1.Params= obj2;
req.ParamScfGatewayRequest_ = obj1;
AlibabaAscpScfSupplierCreditApplyResultFeedResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaAscpScfSupplierCreditApplyResultFeedRequest;
$paramScfGatewayRequest = new ScfGatewayRequest;
$params = new ScfGatewayRequest;
$params->biz_code="TMCS";
$params->supplier_company_id="500001000030687";
$params->finance_id="1234556678";
$params->approved="true";
$params->pre_credit_amount="12344.45";
$params->draw_water_level_amount="23456.78";
$params->remark="授信通过";
$paramScfGatewayRequest->params = $params;
$req->setParamScfGatewayRequest(json_encode($paramScfGatewayRequest));
$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.ascp.scf.supplier.credit.apply.result.feed' \
-d 'partner_id=apidoc' \
-d 'sign=A5AF9589C4EC351C7A03A7DB035E20CD' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-27+21%3A29%3A20' \
-d 'v=2.0' \
-d 'paramScfGatewayRequest=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaAscpScfSupplierCreditApplyResultFeedRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.paramScfGatewayRequest="数据结构示例JSON格式"
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.ascp.scf.supplier.credit.apply.result.feed");
add_param(pRequest,"paramScfGatewayRequest","数据结构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.ascp.scf.supplier.credit.apply.result.feed', {
'paramScfGatewayRequest':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})