def get(self, roomId):
"""Get the details of a room, by ID.
Args:
roomId(basestring): The ID of the room to be retrieved.
Returns:
Room: A Room object with the details of the requested room.
Raises:
TypeError: If the parameter types are incorrect.
SparkApiError: If the Cisco Spark cloud returns an error.
"""
check_type(roomId, basestring, may_be_none=False)
# API request
json_data = self._session.get('rooms/' + roomId)
# Return a Room object created from the response JSON data
return Room(json_data)
评论列表
文章目录