cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
483
Views
0
Helpful
1
Replies

getting roomId using room name

khanali198361
Level 1
Level 1

Is there an API to fetch details of a room using room name ? I'm building a bot which requires user to pass a room name since most of the users wouldn't know about room id or wouldn't go through the hassle of getting the room id. There is a endpoint to get a list of all the rooms but I don't want to get a whole list of rooms but just a single JSON object using room name. 
I'm using a bot access token and the bot is already added to a webex room.

1 Reply 1

dstaudt
Cisco Employee
Cisco Employee

Unfortunately there is not a direct way to search by room name.  Room names make pretty poor keys in any case - names are not unique, can change dynamically, etc.

I suspect in your situation keeping a cache of the user's rooms doesn't make much sense, so you may want to do some real-time paging/searching - e.g. launch a list rooms request for the user (maybe sorted by lastactivity) in the background and page through a smallish chunk at a time (maybe 20-100), updating your search results UI as the room names come in.