TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
CobrasellerCaseinvestPunishDecisionRequest req = new CobrasellerCaseinvestPunishDecisionRequest();
req.setAlipayNo("test111@alipay.com");
req.setAlipayUrl("https://img.alicdn.com/simba/img/TB1zKpha7yWBuNjy0FpSuussXXa.jpg");
req.setAmount("10000");
req.setCaseId(111L);
req.setOssKey("cobrax/标准协查函件1520404925941.pdf");
CobrasellerCaseinvestPunishDecisionResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
CobrasellerCaseinvestPunishDecisionRequest req = new CobrasellerCaseinvestPunishDecisionRequest();
req.AlipayNo = "test111@alipay.com";
req.AlipayUrl = "https://img.alicdn.com/simba/img/TB1zKpha7yWBuNjy0FpSuussXXa.jpg";
req.Amount = "10000";
req.CaseId = 111L;
req.OssKey = "cobrax/标准协查函件1520404925941.pdf";
CobrasellerCaseinvestPunishDecisionResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new CobrasellerCaseinvestPunishDecisionRequest;
$req->setAlipayNo("test111@alipay.com");
$req->setAlipayUrl("https://img.alicdn.com/simba/img/TB1zKpha7yWBuNjy0FpSuussXXa.jpg");
$req->setAmount("10000");
$req->setCaseId("111");
$req->setOssKey("cobrax/标准协查函件1520404925941.pdf");
$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.cobraseller.caseinvest.punish.decision' \
-d 'partner_id=apidoc' \
-d 'sign=B9450B6E37495AE4140A7002F11600CF' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-23+18%3A03%3A32' \
-d 'v=2.0' \
-d 'alipay_no=test111%40alipay.com' \
-d 'alipay_url=https%3A%2F%2Fimg.alicdn.com%2Fsimba%2Fimg%2FTB1zKpha7yWBuNjy0FpSuussXXa.jpg' \
-d 'amount=10000' \
-d 'case_id=111' \
-d 'oss_key=cobrax%2F%E6%A0%87%E5%87%86%E5%8D%8F%E6%9F%A5%E5%87%BD%E4%BB%B61520404925941.pdf'
# -*- coding: utf-8 -*-
import top.api
req=top.api.CobrasellerCaseinvestPunishDecisionRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.alipay_no="test111@alipay.com"
req.alipay_url="https://img.alicdn.com/simba/img/TB1zKpha7yWBuNjy0FpSuussXXa.jpg"
req.amount="10000"
req.case_id=111
req.oss_key="cobrax/标准协查函件1520404925941.pdf"
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.cobraseller.caseinvest.punish.decision");
add_param(pRequest,"alipay_no","test111@alipay.com");
add_param(pRequest,"alipay_url","https://img.alicdn.com/simba/img/TB1zKpha7yWBuNjy0FpSuussXXa.jpg");
add_param(pRequest,"amount","10000");
add_param(pRequest,"case_id","111");
add_param(pRequest,"oss_key","cobrax/标准协查函件1520404925941.pdf");
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.cobraseller.caseinvest.punish.decision', {
'alipay_no':'test111@alipay.com',
'alipay_url':'https://img.alicdn.com/simba/img/TB1zKpha7yWBuNjy0FpSuussXXa.jpg',
'amount':'10000',
'case_id':'111',
'oss_key':'cobrax/标准协查函件1520404925941.pdf'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})