04-04-2022 01:48 AM
Query from Sahin, Mustafa •
Hi, is there any api endpoint to search direct room which includes the authenticated user and a specific mail acount ?
04-04-2022 01:48 AM - edited 04-04-2022 01:52 AM
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
04-04-2022 01:55 AM
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
04-04-2022 06:03 AM
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.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide