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