Retrieve group settings on the API

This commit is contained in:
Pierre HUBERT
2018-07-04 06:05:14 +02:00
parent 30696174f2
commit 218e9b6fbe
8 changed files with 147 additions and 3 deletions

View File

@ -50,6 +50,21 @@ ComunicWeb.components.groups.interface = {
id: id
};
ComunicWeb.common.api.makeAPIrequest(apiURI, params, true, callback);
},
/**
* Get the settings of a group
*
* @param {Number} id The ID of the target group
* @param {Function} callback
*/
getSettings: function(id, callback){
//Perform the request over the API
var apiURI = "groups/get_settings";
var params = {
id: id
};
ComunicWeb.common.api.makeAPIrequest(apiURI, params, true, callback);
}
};