TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TmallServicecenterWorkcardCallRecordRequest req = new TmallServicecenterWorkcardCallRecordRequest();
TmallServicecenterWorkcardCallRecordRequest.UpdateAttributeRequest obj1 = new TmallServicecenterWorkcardCallRecordRequest.UpdateAttributeRequest();
obj1.setCallRecord("服务回访记录信息");
TmallServicecenterWorkcardCallRecordRequest.WorkcardRequestSource obj2 = new TmallServicecenterWorkcardCallRecordRequest.WorkcardRequestSource();
obj2.setRealTpNick("服务商淘宝账号xxx");
obj1.setRequestSource(obj2);
obj1.setWorkcardId(11223333L);
req.setBusiRequest(obj1);
TmallServicecenterWorkcardCallRecordResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
TmallServicecenterWorkcardCallRecordRequest req = new TmallServicecenterWorkcardCallRecordRequest();
TmallServicecenterWorkcardCallRecordRequest.UpdateAttributeRequestDomain obj1 = new TmallServicecenterWorkcardCallRecordRequest.UpdateAttributeRequestDomain();
obj1.CallRecord = "服务回访记录信息";
TmallServicecenterWorkcardCallRecordRequest.WorkcardRequestSourceDomain obj2 = new TmallServicecenterWorkcardCallRecordRequest.WorkcardRequestSourceDomain();
obj2.RealTpNick = "服务商淘宝账号xxx";
obj1.RequestSource= obj2;
obj1.WorkcardId = 11223333L;
req.BusiRequest_ = obj1;
TmallServicecenterWorkcardCallRecordResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new TmallServicecenterWorkcardCallRecordRequest;
$busi_request = new UpdateAttributeRequest;
$busi_request->call_record="服务回访记录信息";
$request_source = new WorkcardRequestSource;
$request_source->real_tp_nick="服务商淘宝账号xxx";
$busi_request->request_source = $request_source;
$busi_request->workcard_id="11223333";
$req->setBusiRequest(json_encode($busi_request));
$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.workcard.call.record' \
-d 'partner_id=apidoc' \
-d 'session=bac92fb9-440d-4eca-af1a-e2304a8f62a1' \
-d 'sign=820F2650764E5BB7068F757D1353AB08' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-15+19%3A12%3A14' \
-d 'v=2.0' \
-d 'busi_request=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.TmallServicecenterWorkcardCallRecordRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.busi_request=""
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.workcard.call.record");
add_param(pRequest,"busi_request","数据结构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('tmall.servicecenter.workcard.call.record', {
'busi_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})