people.py 文件源码

python
阅读 19 收藏 0 点赞 0 评论 0

项目:ciscosparkapi 作者: CiscoDevNet 项目源码 文件源码
def get(self, personId):
        """Get a person's details, by ID.

        Args:
            personId(basestring): The ID of the person to be retrieved.

        Returns:
            Person: A Person object with the details of the requested person.

        Raises:
            TypeError: If the parameter types are incorrect.
            SparkApiError: If the Cisco Spark cloud returns an error.

        """
        check_type(personId, basestring, may_be_none=False)

        # API request
        json_data = self._session.get('people/' + personId)

        # Return a Person object created from the response JSON data
        return Person(json_data)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号