2 Replies Latest reply on Nov 12, 2012 1:17 PM by prashantmishra

    cloud api to retrieve group


      Mark Weitzel / LG .

      can any help to find the api to retrieve all the groups that a user is currently following





        • Re: cloud api to retrieve group

          First get the userID of the user, there are several ways to to this:

          /people/username/your-user-name # may return 1234, I'll use it within the next call


          Use your userID if you are not an admin to avoid forbidden errors.

          Then get the streamIDs, the user may have created a lot of streams and added different places to different streams:

          /people/1234/streams # may return multiple streams, for example 2,3,5,7


          Iterate over all streams and filter for the group type:

          /streams/2/associations?filter=type(group) # may return zero, one or more streams





          o_O @ "