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