mirror of
https://github.com/pierre42100/ComunicWeb
synced 2025-06-19 04:15:17 +00:00
Basic groups header
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
};
|
Reference in New Issue
Block a user