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