You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to implement a method that removes all the rooms a users belongs to .
Can you help me with either a query that returns all the groups a user belongs to ( and a query for channels).
or a method that returns all the usernames of a group , i am trying to use .getUsernames but it always returns null ( i guess it's not fetching the data from the server)
Thank you for your time .
The text was updated successfully, but these errors were encountered:
I am trying to implement this but no luck so far , getting
The parameter "roomId" or "roomName" is required [error-room-param-not-provided]"
public User[] getMembers(Group group) throws IOException {
RocketChatClientResponse res = this.callBuilder.buildCall(RocketChatRestApiV1.GroupsMembers,null,group.getId());
if (!res.isSuccessful())
throw new IOException("The call to get the members of the Group was unsuccessful: \"" + res.getError() + "\"");
if (!res.hasGroups())
throw new IOException("Failed to get the members of the group");
return res.getUsers();
}
Hey and merry xmas .
I am looking for this : https://docs.rocket.chat/api/rest-api/methods/groups/members
I want to implement a method that removes all the rooms a users belongs to .
Can you help me with either a query that returns all the groups a user belongs to ( and a query for channels).
or a method that returns all the usernames of a group , i am trying to use .getUsernames but it always returns null ( i guess it's not fetching the data from the server)
Thank you for your time .
The text was updated successfully, but these errors were encountered: