cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
562
Views
0
Helpful
3
Replies

Query regarding room API endpoint

sandiban
Cisco Employee
Cisco Employee

Query from Sahin, Mustafa •

Hi, is there any api endpoint to search direct room which includes the authenticated user and a specific mail acount ?

3 Replies 3

sandiban
Cisco Employee
Cisco Employee

Hi Sahin,

Could kindly check this out - https://developer.webex.com/docs/api/v1/rooms

First of all, you've to be the part of that room to view the details and you should have the roomId as well.
If you don't have the roomId handy, you can use this - /list-rooms endpoint first.
Once you find the required roomName from that list, collect the roomId of that room and query the /get-room-details API endpoint with the help of that roomId.

 

This should help you !
Any further assistance, please let us know.

Regards!
Sandip

This requires to fetch all rooms of the authenticated user and I need to loop over the list of the rooms.

and for each room I need to fecth memeberships api to see if the target user is a member of this group. 

 

Isn't there anyway to search a room which includes me (authenticated user) and another user. 

For example I want to search direct room between me and one of my collagues

Hi Sahin,

I believe like you're asking, if the /list-rooms endpoint can specifically give you the result where you and another person are part of or, not.

Unfortunately, that's not possible. Because in the /list-rooms api, you can't use a filter like personId. It only lists rooms to which the authenticated user belongs.

When you'll query /list-rooms, it will give you the long list of rooms where you're already part of.

And, to meet your requirement, from there you need to take the roomId and check the memberships for that specific personId.

Though you can automate them such a way, where mostly these manual works are scripted and finally provides you the comparison with a Yes or No.