TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AliexpressIssueSolutionSaveRequest req = new AliexpressIssueSolutionSaveRequest();
AliexpressIssueSolutionSaveRequest.SellerAddOrModifySolutionDto obj1 = new AliexpressIssueSolutionSaveRequest.SellerAddOrModifySolutionDto();
obj1.setAddSellerSolution(false);
obj1.setBuyerLoginId("tomcs");
obj1.setBuyerSolutionId(1111L);
obj1.setIssueId(22222L);
obj1.setModifySellerSolutionId(11111L);
obj1.setRefundAmount("1.01");
obj1.setRefundAmountCurrency("USD");
obj1.setSolutionContext("good");
obj1.setAddSolutionType("return_and_refund");
obj1.setReturnGoodAddressId(111111L);
req.setParamDto(obj1);
AliexpressIssueSolutionSaveResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AliexpressIssueSolutionSaveRequest req = new AliexpressIssueSolutionSaveRequest();
AliexpressIssueSolutionSaveRequest.SellerAddOrModifySolutionDtoDomain obj1 = new AliexpressIssueSolutionSaveRequest.SellerAddOrModifySolutionDtoDomain();
obj1.AddSellerSolution = false;
obj1.BuyerLoginId = "tomcs";
obj1.BuyerSolutionId = 1111L;
obj1.IssueId = 22222L;
obj1.ModifySellerSolutionId = 11111L;
obj1.RefundAmount = "1.01";
obj1.RefundAmountCurrency = "USD";
obj1.SolutionContext = "good";
obj1.AddSolutionType = "return_and_refund";
obj1.ReturnGoodAddressId = 111111L;
req.ParamDto_ = obj1;
AliexpressIssueSolutionSaveResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AliexpressIssueSolutionSaveRequest;
$param_dto = new SellerAddOrModifySolutionDto;
$param_dto->add_seller_solution="false";
$param_dto->buyer_login_id="tomcs";
$param_dto->buyer_solution_id="1111";
$param_dto->issue_id="22222";
$param_dto->modify_seller_solution_id="11111";
$param_dto->refund_amount="1.01";
$param_dto->refund_amount_currency="USD";
$param_dto->solution_context="good";
$param_dto->add_solution_type="return_and_refund";
$param_dto->return_good_address_id="111111";
$req->setParamDto(json_encode($param_dto));
$resp = $c->execute($req, $sessionKey);
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=aliexpress.issue.solution.save' \
-d 'partner_id=apidoc' \
-d 'session=345941e4-1cac-4f9f-8d40-3e19b6dbe749' \
-d 'sign=60CDC5501338B6CF7036148F1A28D9FA' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-24+17%3A12%3A51' \
-d 'v=2.0' \
-d 'param_dto=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AliexpressIssueSolutionSaveRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.param_dto=""
try:
resp= req.getResponse(sessionkey)
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,"aliexpress.issue.solution.save");
add_param(pRequest,"param_dto","数据结构JSON示例");
pResponse = top_execute(pClient,pRequest,sessionKey);
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('aliexpress.issue.solution.save', {
'param_dto':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})