TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TmallServicecenterHomedecorationConsultationRespondRequest req = new TmallServicecenterHomedecorationConsultationRespondRequest();
req.setConsultationId("\"123456\"");
req.setContacted(true);
req.setContent("\"文案内容\"");
req.setNotes("[\"111\",\"222\"]");
TmallServicecenterHomedecorationConsultationRespondResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
TmallServicecenterHomedecorationConsultationRespondRequest req = new TmallServicecenterHomedecorationConsultationRespondRequest();
req.ConsultationId = "\"123456\"";
req.Contacted = true;
req.Content = "\"文案内容\"";
req.Notes = "[\"111\",\"222\"]";
TmallServicecenterHomedecorationConsultationRespondResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new TmallServicecenterHomedecorationConsultationRespondRequest;
$req->setConsultationId("\"123456\"");
$req->setContacted("true");
$req->setContent("\"文案内容\"");
$req->setNotes("[\"111\",\"222\"]");
$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=tmall.servicecenter.homedecoration.consultation.respond' \
-d 'partner_id=apidoc' \
-d 'session=b7c7467c-f388-48e0-ba85-26d6f3eeb81b' \
-d 'sign=E4585F3AB8559FDA007EE36179DDC43F' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-10+18%3A36%3A23' \
-d 'v=2.0' \
-d 'consultation_id=%5C%22123456%5C%22' \
-d 'contacted=true' \
-d 'content=%5C%22%E6%96%87%E6%A1%88%E5%86%85%E5%AE%B9%5C%22' \
-d 'notes=%22111%22%2C%22222%22'
# -*- coding: utf-8 -*-
import top.api
req=top.api.TmallServicecenterHomedecorationConsultationRespondRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.consultation_id="\"123456\""
req.contacted=true
req.content="\"文案内容\""
req.notes="[\"111\",\"222\"]"
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,"tmall.servicecenter.homedecoration.consultation.respond");
add_param(pRequest,"consultation_id","\"123456\"");
add_param(pRequest,"contacted","true");
add_param(pRequest,"content","\"文案内容\"");
add_param(pRequest,"notes",""111","222"");
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('tmall.servicecenter.homedecoration.consultation.respond', {
'consultation_id':'\"123456\"',
'contacted':'true',
'content':'\"文案内容\"',
'notes':'"111","222"'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})