TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TbkScSocialCrowdCreateRequest req = new TbkScSocialCrowdCreateRequest();
req.setSocialCrowdType(1L);
req.setSocialCrowdName("群1");
req.setDesc("desc");
req.setMainMemberId(12321L);
req.setGroupType(1L);
req.setQmtId("123");
TbkScSocialCrowdCreateResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
TbkScSocialCrowdCreateRequest req = new TbkScSocialCrowdCreateRequest();
req.SocialCrowdType = 1L;
req.SocialCrowdName = "群1";
req.Desc = "desc";
req.MainMemberId = 12321L;
req.GroupType = 1L;
req.QmtId = "123";
TbkScSocialCrowdCreateResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new TbkScSocialCrowdCreateRequest;
$req->setSocialCrowdType("1");
$req->setSocialCrowdName("群1");
$req->setDesc("desc");
$req->setMainMemberId("12321");
$req->setGroupType("1");
$req->setQmtId("123");
$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.tbk.sc.social.crowd.create' \
-d 'partner_id=apidoc' \
-d 'session=6a8ba8b0-37e1-4056-b7b8-e54df440b42c' \
-d 'sign=31BE4B20CB3A97F3CA35A2688501C130' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-23+13%3A48%3A10' \
-d 'v=2.0' \
-d 'desc=desc' \
-d 'group_type=1' \
-d 'main_member_id=12321' \
-d 'qmt_id=123' \
-d 'social_crowd_name=%E7%BE%A41' \
-d 'social_crowd_type=1'
# -*- coding: utf-8 -*-
import top.api
req=top.api.TbkScSocialCrowdCreateRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.social_crowd_type=1
req.social_crowd_name="群1"
req.desc="desc"
req.main_member_id=12321
req.group_type=1
req.qmt_id="123"
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.tbk.sc.social.crowd.create");
add_param(pRequest,"social_crowd_type","1");
add_param(pRequest,"social_crowd_name","群1");
add_param(pRequest,"desc","desc");
add_param(pRequest,"main_member_id","12321");
add_param(pRequest,"group_type","1");
add_param(pRequest,"qmt_id","123");
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.tbk.sc.social.crowd.create', {
'social_crowd_type':'1',
'social_crowd_name':'群1',
'desc':'desc',
'main_member_id':'12321',
'group_type':'1',
'qmt_id':'123'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})