6.2 Get My Groups

The getMyGroups function returns all the groups, both public and private, the user is a member of.

The function takes the following parameters :

  • sessionId : Unique SessionId which is received in the authenticate function response.

response = bayunCore.myGroups(sessionId)
groups = response.getGroups()
print("\nMy Groups Response : ")
for groupInfo in groups:
    print("\nGroup Id : " + groupInfo.groupId)
    print("Group Name : " + groupInfo.name)
    print("Group Type : " + groupInfo.type)

Last updated