mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-23 12:39:22 +00:00
25 lines
508 B
JavaScript
25 lines
508 B
JavaScript
/**
|
|
* Groups API interface
|
|
*
|
|
* @author Pierre HUBERT
|
|
*/
|
|
|
|
ComunicWeb.components.groups.interface = {
|
|
|
|
/**
|
|
* Create a group
|
|
*
|
|
* @param {String} name The name of the group to create
|
|
* @param {Function} callback
|
|
*/
|
|
create: function(name, callback){
|
|
|
|
//Perform a request over the API
|
|
var apiURI = "groups/create";
|
|
var params = {
|
|
name: name
|
|
};
|
|
ComunicWeb.common.api.makeAPIrequest(apiURI, params, true, callback);
|
|
}
|
|
|
|
}; |