TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaSscYichaoWarrantycodeCheckRequest req = new AlibabaSscYichaoWarrantycodeCheckRequest();
req.setTpId(1L);
req.setServiceCode("1");
req.setWorkOrderId(1L);
req.setWarrantyCode("1");
AlibabaSscYichaoWarrantycodeCheckResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaSscYichaoWarrantycodeCheckRequest req = new AlibabaSscYichaoWarrantycodeCheckRequest();
req.TpId = 1L;
req.ServiceCode = "1";
req.WorkOrderId = 1L;
req.WarrantyCode = "1";
AlibabaSscYichaoWarrantycodeCheckResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaSscYichaoWarrantycodeCheckRequest;
$req->setTpId("1");
$req->setServiceCode("1");
$req->setWorkOrderId("1");
$req->setWarrantyCode("1");
$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.ssc.yichao.warrantycode.check' \
-d 'partner_id=apidoc' \
-d 'sign=D244D43D8282E415590C57E17024C660' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-29+07%3A47%3A09' \
-d 'v=2.0' \
-d 'service_code=1' \
-d 'tp_id=1' \
-d 'warranty_code=1' \
-d 'work_order_id=1'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaSscYichaoWarrantycodeCheckRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.tp_id=1
req.service_code="1"
req.work_order_id=1
req.warranty_code="1"
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.ssc.yichao.warrantycode.check");
add_param(pRequest,"tp_id","1");
add_param(pRequest,"service_code","1");
add_param(pRequest,"work_order_id","1");
add_param(pRequest,"warranty_code","1");
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.ssc.yichao.warrantycode.check', {
'tp_id':'1',
'service_code':'1',
'work_order_id':'1',
'warranty_code':'1'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})