TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TmallServicecenterFulfiltaskInsuranceActionRequest req = new TmallServicecenterFulfiltaskInsuranceActionRequest();
req.setTaskAction("send_goods");
req.setWorkcardId(383208002L);
req.setFulfilTaskId(112002002L);
req.setTaskContextDataString("{\"key\",“value\"}");
req.setOuterId("12321211");
TmallServicecenterFulfiltaskInsuranceActionResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
TmallServicecenterFulfiltaskInsuranceActionRequest req = new TmallServicecenterFulfiltaskInsuranceActionRequest();
req.TaskAction = "send_goods";
req.WorkcardId = 383208002L;
req.FulfilTaskId = 112002002L;
req.TaskContextData = "{\"key\",“value\"}";
req.OuterId = "12321211";
TmallServicecenterFulfiltaskInsuranceActionResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new TmallServicecenterFulfiltaskInsuranceActionRequest;
$req->setTaskAction("send_goods");
$req->setWorkcardId("383208002");
$req->setFulfilTaskId("112002002");
$req->setTaskContextData("{\"key\",“value\"}");
$req->setOuterId("12321211");
$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.fulfiltask.insurance.action' \
-d 'partner_id=apidoc' \
-d 'session=6158cf10-3392-4086-b4c8-d0349bcefb1b' \
-d 'sign=527E8CE4F43FAA4FE6D68DE5D71F4B21' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-15+19%3A31%3A22' \
-d 'v=2.0' \
-d 'fulfil_task_id=112002002' \
-d 'outer_id=12321211' \
-d 'task_action=send_goods' \
-d 'task_context_data=%7B%5C%22key%5C%22%2C%E2%80%9Cvalue%5C%22%7D' \
-d 'workcard_id=383208002'
# -*- coding: utf-8 -*-
import top.api
req=top.api.TmallServicecenterFulfiltaskInsuranceActionRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.task_action="send_goods"
req.workcard_id=383208002
req.fulfil_task_id=112002002
req.task_context_data="{\"key\",“value\"}"
req.outer_id="12321211"
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.fulfiltask.insurance.action");
add_param(pRequest,"task_action","send_goods");
add_param(pRequest,"workcard_id","383208002");
add_param(pRequest,"fulfil_task_id","112002002");
add_param(pRequest,"task_context_data","{\"key\",“value\"}");
add_param(pRequest,"outer_id","12321211");
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.fulfiltask.insurance.action', {
'task_action':'send_goods',
'workcard_id':'383208002',
'fulfil_task_id':'112002002',
'task_context_data':'{\"key\",“value\"}',
'outer_id':'12321211'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})