cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
537
Views
0
Helpful
2
Replies

Is there any REST api to get only list of the spaces those only joined

Hi 

 

Is there any REST api to get only list of the spaces those only joined spaces .

2 Replies 2

Currently if  I use https://webexapis.com/v1/rooms?teamId=??? I am getting all spaces including unjoined spaces also but I want list of  only joined spaces 

I suspect you would need to do something like:

  1. Retrieve all of the rooms which belong to the target team (as you've done:) https://webexapis.com/v1/rooms?teamId={teamId}
  2. For each room in the team, check if there is a membership for the target user: https://webexapis.com/v1/memberships?roomId={roomId}&personEmail={personEmail}
  3. If so, then the user has joined the available room