Skip to content

Commit 5ae8ccc

Browse files
author
Ava Thorn
committed
add room tab get
1 parent 88f9a80 commit 5ae8ccc

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

webexteamssdk/api/room_tabs.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -150,27 +150,27 @@ def create(self, roomId, contentUrl, displayName, **request_parameters):
150150
# Return a room object created from the response JSON data
151151
return self._object_factory(OBJECT_TYPE, json_data)
152152

153-
# def get(self, roomId):
154-
# """Get the details of a room tab, by ID.
153+
def get(self, roomTabId):
154+
"""Get the details of a room tab, by ID.
155155
156-
# Args:
157-
# roomId(basestring): The ID of the room to be retrieved.
156+
Args:
157+
roomTabId(basestring): The ID of the room tab to be retrieved.
158158
159-
# Returns:
160-
# Room: A Room object with the details of the requested room.
159+
Returns:
160+
Room: A RoomTab object with the details of the requested room tab.
161161
162-
# Raises:
163-
# TypeError: If the parameter types are incorrect.
164-
# ApiError: If the Webex Teams cloud returns an error.
162+
Raises:
163+
TypeError: If the parameter types are incorrect.
164+
ApiError: If the Webex Teams cloud returns an error.
165165
166-
# """
167-
# check_type(roomId, basestring)
166+
"""
167+
check_type(roomTabId, basestring)
168168

169-
# # API request
170-
# json_data = self._session.get(API_ENDPOINT + '/' + roomId)
169+
# API request
170+
json_data = self._session.get(API_ENDPOINT + '/' + roomTabId)
171171

172-
# # Return a room object created from the response JSON data
173-
# return self._object_factory(OBJECT_TYPE, json_data)
172+
# Return a room object created from the response JSON data
173+
return self._object_factory(OBJECT_TYPE, json_data)
174174

175175
def update(self, roomTabId, roomId, contentUrl, displayName, **request_parameters):
176176
"""Updates the content url of a Room Tab by ID.

0 commit comments

Comments
 (0)