TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
OpencrmCrowdinstsGatherRequest req = new OpencrmCrowdinstsGatherRequest();
OpencrmCrowdinstsGatherRequest.OpenActivityNodeInstDTO obj1 = new OpencrmCrowdinstsGatherRequest.OpenActivityNodeInstDTO();
obj1.setActivityId("1");
obj1.setActivityInstId("1");
obj1.setNodeId("1");
obj1.setNodeInstId("1");
obj1.setTest(true);
req.setNodeInst(obj1);
req.setAction("1");
req.setCrowdInstIds("1");
OpencrmCrowdinstsGatherResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
OpencrmCrowdinstsGatherRequest req = new OpencrmCrowdinstsGatherRequest();
OpencrmCrowdinstsGatherRequest.OpenActivityNodeInstDTODomain obj1 = new OpencrmCrowdinstsGatherRequest.OpenActivityNodeInstDTODomain();
obj1.ActivityId = "1";
obj1.ActivityInstId = "1";
obj1.NodeId = "1";
obj1.NodeInstId = "1";
obj1.Test = true;
req.NodeInst_ = obj1;
req.Action = "1";
req.CrowdInstIds = "1";
OpencrmCrowdinstsGatherResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new OpencrmCrowdinstsGatherRequest;
$node_inst = new OpenActivityNodeInstDTO;
$node_inst->activity_id="1";
$node_inst->activity_inst_id="1";
$node_inst->node_id="1";
$node_inst->node_inst_id="1";
$node_inst->test="true";
$req->setNodeInst(json_encode($node_inst));
$req->setAction("1");
$req->setCrowdInstIds("1");
$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.crowdinsts.gather' \
-d 'partner_id=apidoc' \
-d 'session=02ccb8ea-b749-4b0f-b18c-4984debf2a72' \
-d 'sign=9A6F436EF7A17F5A0320BE64090583D2' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-08-26+15%3A50%3A51' \
-d 'v=2.0' \
-d 'action=1' \
-d 'crowd_inst_ids=1' \
-d 'node_inst=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.OpencrmCrowdinstsGatherRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.node_inst=""
req.action="1"
req.crowd_inst_ids="1"
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.crowdinsts.gather");
add_param(pRequest,"node_inst","数据结构JSON示例");
add_param(pRequest,"action","1");
add_param(pRequest,"crowd_inst_ids","1");
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.crowdinsts.gather', {
'node_inst':'数据结构JSON示例',
'action':'1',
'crowd_inst_ids':'1'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})