• Categories
  • Recent
  • Tags
  • Popular
  • Solved
  • Unsolved
  • Users
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Darkly)
  • No Skin
Collapse
brainCloud Forums

GetMyGroups doesn't return anything in requested

Scheduled Pinned Locked Moved Solved Client API Defects
unitygroup
3 Posts 2 Posters 353 Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Chris Brown
    wrote on last edited by
    #1

    We are setting up private groups and have stuff in place for a user to send a request to a group to join that group. However, on the group owner side, we noticed an issue when we use the "GetMyGroups" call.

    It does show we have request pending, but the requested part is empty.

    requestEmpty.PNG

    As in the screenshot, I have 5 users request pending, but nothing in the requested section which I assumed was suppose to have some user information.

    I did look in the brainCloud dashboard under groups and I can see the names of the users making a request to join.

    I did discover I can get the pendingMembers through the ReadGroup call, just seemed odd there was a section in GetMyGroups that was empty.

    Thanks!

    1 Reply Last reply
    0
  • JonathanJ Offline
    JonathanJ Offline
    Jonathan
    wrote on last edited by
    #2

    Hey,

    The GetMyGroups will return the group requests and invites made to the current profile.

    As you noticed, to get the requests and invites made to a group (from other profiles), you need to use ReadGroup.

    This flow is working as intended. Groups and profiles are separate objects, and both can make invites and receive requests.

    So using GetMyGroups: here would be an example of a user that has made a group request, and has received a group invite.

    {  
       "data":{  
          "requested":[  
             {  
                "groupType":"DiscussionGroup",
                "groupId":"ad1ae126-d030-4d21-92c5-3e9d0b959647",
                "memberCount":1,
                "name":"Dark Roast",
                "invitedPendingMemberCount":0,
                "requestingPendingMemberCount":1,
                "ownerId":"f86a20d4-51a3-4594-a5b0-90111bf55e6d",
                "isOpenGroup":false
             }
          ],
          "invited":[  
             {  
                "groupType":"DiscussionGroup",
                "groupId":"b1d958e3-d196-45e2-9567-8efeb3296482",
                "memberCount":1,
                "name":"Local Coffee Shops",
                "invitedPendingMemberCount":1,
                "requestingPendingMemberCount":0,
                "ownerId":"f86a20d4-51a3-4594-a5b0-90111bf55e6d",
                "isOpenGroup":true
             }
          ],
          "groups":[  
    
          ]
       },
       "status":200
    }
    

    Hope that helps!

    1 Reply Last reply
    0
  • C Offline
    C Offline
    Chris Brown
    wrote on last edited by
    #3

    Thanks @Jonathan
    It was a bit confusing since I was thinking in terms of the owner having quick access to all their groups data, but I understand the difference in GetMyGroups now. It's a call on the profile and not on the group.

    1 Reply Last reply
    1

  • Login

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • Solved
  • Unsolved
  • Users