6.1 Create Group
Using createGroup
method, a new group is created. The group can be either of type GroupTypePublic
or GroupTypePrivate
. The user creating the group automatically becomes a member of the group, with full authorization for complete group-management functionality for that group. The developer can choose to enforce more fine-grained access controls if desired.
The function takes the following parameters :
sessionId : Unique SessionId which is received in the registration/login function response.
groupName : Group name(Optional).
groupType : Type of group.
#include "BayunCore.h"
Bayun::GroupType groupType = Bayun::GroupType::public;
Bayun::ShCreateGroupResponse createGroupResponse = bayunCore->createGroup("<sessionId>", "<groupName>", groupType);
const std::string& groupId = createGroupResponse->getGroupId();
Last updated
Was this helpful?