Basic groups header

This commit is contained in:
Pierre HUBERT
2018-07-03 11:45:57 +02:00
parent b527b3a22d
commit e28b99f40c
8 changed files with 240 additions and 4 deletions

View File

@ -20,6 +20,36 @@ ComunicWeb.components.groups.interface = {
name: name
};
ComunicWeb.common.api.makeAPIrequest(apiURI, params, true, callback);
},
/**
* Get information about a group
*
* @param {Number} id The ID of the target group
* @param {Function} callback Callback
*/
getInfo: function(id, callback){
//Perform the request over the API
var apiURI = "groups/get_info";
var params = {
id: id
};
ComunicWeb.common.api.makeAPIrequest(apiURI, params, true, callback);
},
/**
* Get advanced information about a group
*
* @param {Number} id The ID of the target group
* @param {Function} callback Callback
*/
getAdvancedInfo: function(id, callback){
//Perform the request over the API
var apiURI = "groups/get_advanced_info";
var params = {
id: id
};
ComunicWeb.common.api.makeAPIrequest(apiURI, params, true, callback);
}
};