• 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

Getting names for request and invites to a group

Scheduled Pinned Locked Moved Solved APIs
unitygroup
3 Posts 2 Posters 484 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

    When we grab all the group data, we can get a list of any request or invites that are sent for the group. The only downside is there aren't any names included so when we show a list of it to the user, we would have to fetch the names on their own.

    This particular app we are working on could have several request and invites going on. We thought about using the Attributes section, but there didn't seem to be a way to pass in info to that section when using the join group call.

    We figure there may be a way to do this through cloud code, but we're just not certain how to do that coding.

    Reaching out if anybody has a good solution they came up with on this part?

    Thanks for any assistance.

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

    As an interim solution, you can add a cloud code script or a post-hook to retrieve the missing data, using the profileIds found in the request.

    https://getbraincloud.com/apidocs/apiref/#capi-friend-getsummarydataforprofileid

    
      ...
      "pendingMembers": {
        "382eb04f-f80c-4bfc-9a12-fca508cad476": { // <- These profile ids
          "role": "MEMBER",
          "attributes": {},
          "pendingReason": "ASKED_TO_JOIN"
        }
      }
      ...
    
    1 Reply Last reply
    0
  • JonathanJ Offline
    JonathanJ Offline
    Jonathan
    wrote on last edited by
    #2

    I am forwarding this to the devs to look into addressing.

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

    As an interim solution, you can add a cloud code script or a post-hook to retrieve the missing data, using the profileIds found in the request.

    https://getbraincloud.com/apidocs/apiref/#capi-friend-getsummarydataforprofileid

    
      ...
      "pendingMembers": {
        "382eb04f-f80c-4bfc-9a12-fca508cad476": { // <- These profile ids
          "role": "MEMBER",
          "attributes": {},
          "pendingReason": "ASKED_TO_JOIN"
        }
      }
      ...
    
    1 Reply Last reply
    0
  • Paul WinterhalderP Paul Winterhalder has marked this topic as solved on

  • Login

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