TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
QiannniuBcpushRightsSaveRequest req = new QiannniuBcpushRightsSaveRequest();
List<QiannniuBcpushRightsSaveRequest.UserRightsSettingDo> list2 = new ArrayList<QiannniuBcpushRightsSaveRequest.UserRightsSettingDo>();
QiannniuBcpushRightsSaveRequest.UserRightsSettingDo obj3 = new QiannniuBcpushRightsSaveRequest.UserRightsSettingDo();
list2.add(obj3);
obj3.setContent("demo");
obj3.setName("demo");
obj3.setStatus(0L);
obj3.setCode("test_code");
obj3.setId(1L);
req.setUserRightsSettings(list2);
QiannniuBcpushRightsSaveResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
QiannniuBcpushRightsSaveRequest req = new QiannniuBcpushRightsSaveRequest();
List<QiannniuBcpushRightsSaveRequest.UserRightsSettingDoDomain> list2 = new List<QiannniuBcpushRightsSaveRequest.UserRightsSettingDoDomain>();
QiannniuBcpushRightsSaveRequest.UserRightsSettingDoDomain obj3 = new QiannniuBcpushRightsSaveRequest.UserRightsSettingDoDomain();
list2.Add(obj3);
obj3.Content = "demo";
obj3.Name = "demo";
obj3.Status = 0L;
obj3.Code = "test_code";
obj3.Id = 1L;
req.UserRightsSettings_ = list2;
QiannniuBcpushRightsSaveResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new QiannniuBcpushRightsSaveRequest;
$user_rights_settings = new UserRightsSettingDo;
$user_rights_settings->content="demo";
$user_rights_settings->name="demo";
$user_rights_settings->status="0";
$user_rights_settings->code="test_code";
$user_rights_settings->id="1";
$req->setUserRightsSettings(json_encode($user_rights_settings));
$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.qiannniu.bcpush.rights.save' \
-d 'partner_id=apidoc' \
-d 'session=df192045-1a36-4397-a495-418cd0c7882e' \
-d 'sign=2E9C791B3170846CD5FC8E2FF45D7236' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-06-14+02%3A14%3A07' \
-d 'v=2.0' \
-d 'user_rights_settings=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.QiannniuBcpushRightsSaveRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.user_rights_settings=""
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.qiannniu.bcpush.rights.save");
add_param(pRequest,"user_rights_settings","数据结构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.qiannniu.bcpush.rights.save', {
'user_rights_settings':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})