TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
OpencrmUtouchListSendRequest req = new OpencrmUtouchListSendRequest();
OpencrmUtouchListSendRequest.UTouchDeliverTaskContent obj1 = new OpencrmUtouchListSendRequest.UTouchDeliverTaskContent();
obj1.setDeliverTargets(""xxxx","xxxx"");
obj1.setOutNodeInstId(4001L);
obj1.setCrowdMode(false);
obj1.setPlhVal("{\\"store_name\\": \\"青鸥测试店铺\\", \\"category\\":\\"3c\\", \\"solution\\":\\"优惠券方案\\", \\"reason\":\"不想要了\\"}");
obj1.setMobileAcquisitionRule("3,1,2");
obj1.setTaskCode("top-utouch-1");
req.setTaskContent(obj1);
OpencrmUtouchListSendResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
OpencrmUtouchListSendRequest req = new OpencrmUtouchListSendRequest();
OpencrmUtouchListSendRequest.UTouchDeliverTaskContentDomain obj1 = new OpencrmUtouchListSendRequest.UTouchDeliverTaskContentDomain();
obj1.DeliverTargets = ""xxxx","xxxx"";
obj1.OutNodeInstId = 4001L;
obj1.CrowdMode = false;
obj1.PlhVal = "{\\"store_name\\": \\"青鸥测试店铺\\", \\"category\\":\\"3c\\", \\"solution\\":\\"优惠券方案\\", \\"reason\":\"不想要了\\"}";
obj1.MobileAcquisitionRule = "3,1,2";
obj1.TaskCode = "top-utouch-1";
req.TaskContent_ = obj1;
OpencrmUtouchListSendResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new OpencrmUtouchListSendRequest;
$task_content = new UTouchDeliverTaskContent;
$task_content->deliver_targets="[\"xxxx\",\"xxxx\"]";
$task_content->out_node_inst_id="4001";
$task_content->crowd_mode="false";
$task_content->plh_val="{\\"store_name\\": \\"青鸥测试店铺\\", \\"category\\":\\"3c\\", \\"solution\\":\\"优惠券方案\\", \\"reason\":\"不想要了\\"}";
$task_content->mobile_acquisition_rule="[3,1,2]";
$task_content->task_code="top-utouch-1";
$req->setTaskContent(json_encode($task_content));
$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=taobao.opencrm.utouch.list.send' \
-d 'partner_id=apidoc' \
-d 'session=bb5bc848-512d-4122-9b44-5078327c6191' \
-d 'sign=67454257C61A5DBA1887ACCBEF6CF507' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-18+16%3A27%3A10' \
-d 'v=2.0' \
-d 'task_content=%7B%7D'
# -*- coding: utf-8 -*-
import top.api
req=top.api.OpencrmUtouchListSendRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.task_content="{}"
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,"taobao.opencrm.utouch.list.send");
add_param(pRequest,"task_content","数据结构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('taobao.opencrm.utouch.list.send', {
'task_content':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})