7.5 Get Group By Id

The getGroupById returns details of a group. Details include groupId, name, type, groupMembers. Any existing member of the group can retrieve details of the group, including the list of all the group members.

The function takes the following parameters :

  • sessionId : Unique SessionId which is received in the login/registration function response.

  • groupId : Group Id of the Group.

bayunCore.getGroupById("<sessionId>", "<groupId>")
    .then(result => {
      console.log("Response received for getGroupById.");
      console.log(result);
})
.catch(error => {
      console.log("Error caught");
      console.log(error);
});

Last updated

Was this helpful?