TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaFinanceAgreementUploadNotifyRequest req = new AlibabaFinanceAgreementUploadNotifyRequest();
AlibabaFinanceAgreementUploadNotifyRequest.ExternalAgreementNotifyRequest obj1 = new AlibabaFinanceAgreementUploadNotifyRequest.ExternalAgreementNotifyRequest();
obj1.setInstitution("JIANGSU");
obj1.setApplyNo("123132131313123");
List<AlibabaFinanceAgreementUploadNotifyRequest.Attachment> list3 = new ArrayList<AlibabaFinanceAgreementUploadNotifyRequest.Attachment>();
AlibabaFinanceAgreementUploadNotifyRequest.Attachment obj4 = new AlibabaFinanceAgreementUploadNotifyRequest.Attachment();
list3.add(obj4);
obj4.setPath("/edn/aliababa/file");
obj4.setType("TMALL_DDD_YZ_JSBK_PERSONAL_CREDIT_AUTH");
obj4.setName("12232323232323");
obj4.setSuffix("pdf");
obj1.setAttachmentList(list3);
obj1.setRequestId("12312312313123");
obj1.setCustomerId("123123123123");
obj1.setPushScene("LOAN");
obj1.setExtendInfo("{}");
req.setExternalAgreementNotifyRequest(obj1);
AlibabaFinanceAgreementUploadNotifyResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaFinanceAgreementUploadNotifyRequest req = new AlibabaFinanceAgreementUploadNotifyRequest();
AlibabaFinanceAgreementUploadNotifyRequest.ExternalAgreementNotifyRequestDomain obj1 = new AlibabaFinanceAgreementUploadNotifyRequest.ExternalAgreementNotifyRequestDomain();
obj1.Institution = "JIANGSU";
obj1.ApplyNo = "123132131313123";
List<AlibabaFinanceAgreementUploadNotifyRequest.AttachmentDomain> list3 = new List<AlibabaFinanceAgreementUploadNotifyRequest.AttachmentDomain>();
AlibabaFinanceAgreementUploadNotifyRequest.AttachmentDomain obj4 = new AlibabaFinanceAgreementUploadNotifyRequest.AttachmentDomain();
list3.Add(obj4);
obj4.Path = "/edn/aliababa/file";
obj4.Type = "TMALL_DDD_YZ_JSBK_PERSONAL_CREDIT_AUTH";
obj4.Name = "12232323232323";
obj4.Suffix = "pdf";
obj1.AttachmentList= list3;
obj1.RequestId = "12312312313123";
obj1.CustomerId = "123123123123";
obj1.PushScene = "LOAN";
obj1.ExtendInfo = "{}";
req.ExternalAgreementNotifyRequest_ = obj1;
AlibabaFinanceAgreementUploadNotifyResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaFinanceAgreementUploadNotifyRequest;
$external_agreement_notify_request = new ExternalAgreementNotifyRequest;
$external_agreement_notify_request->institution="JIANGSU";
$external_agreement_notify_request->apply_no="123132131313123";
$attachment_list = new Attachment;
$attachment_list->path="/edn/aliababa/file";
$attachment_list->type="TMALL_DDD_YZ_JSBK_PERSONAL_CREDIT_AUTH";
$attachment_list->name="12232323232323";
$attachment_list->suffix="pdf";
$external_agreement_notify_request->attachment_list = $attachment_list;
$external_agreement_notify_request->request_id="12312312313123";
$external_agreement_notify_request->customer_id="123123123123";
$external_agreement_notify_request->push_scene="LOAN";
$external_agreement_notify_request->extend_info="{}";
$req->setExternalAgreementNotifyRequest(json_encode($external_agreement_notify_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.finance.agreement.upload.notify' \
-d 'partner_id=apidoc' \
-d 'sign=4A370283B93E01DB4A7599BC565F0F28' \
-d 'sign_method=hmac' \
-d 'timestamp=2026-04-04+06%3A28%3A57' \
-d 'v=2.0' \
-d 'external_agreement_notify_request=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaFinanceAgreementUploadNotifyRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.external_agreement_notify_request="数据结构示例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.finance.agreement.upload.notify");
add_param(pRequest,"external_agreement_notify_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',
'url': 'http://gw.api.taobao.com/router/rest'
});
client.execute('alibaba.finance.agreement.upload.notify', {
'external_agreement_notify_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})