mirror of
https://github.com/pierre42100/ComunicWeb
synced 2025-06-19 04:15:17 +00:00
Can request a membership deletion on the API
This commit is contained in:
@ -34,6 +34,21 @@ ComunicWeb.components.groups.interface = {
|
||||
ComunicWeb.common.api.makeAPIrequest(apiURI, params, true, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* Remove a user membership
|
||||
*
|
||||
* @param {Number} groupID The ID of the target group
|
||||
* @param {Function} callback
|
||||
*/
|
||||
removeMembership: function(groupID, callback){
|
||||
//Perform the request over the API
|
||||
var apiURI = "groups/remove_membership";
|
||||
var params = {
|
||||
id: groupID
|
||||
};
|
||||
ComunicWeb.common.api.makeAPIrequest(apiURI, params, true, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* Get information about a group
|
||||
*
|
||||
|
Reference in New Issue
Block a user