python类NamedUser()的实例源码

NamedUser.py 文件源码 项目:t2-crash-reporter 作者: tessel 项目源码 文件源码 阅读 17 收藏 0 点赞 0 评论 0
def get_followers(self):
        """
        :calls: `GET /users/:user/followers <http://developer.github.com/v3/users/followers>`_
        :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.NamedUser.NamedUser`
        """
        return github.PaginatedList.PaginatedList(
            NamedUser,
            self._requester,
            self.url + "/followers",
            None
        )
NamedUser.py 文件源码 项目:t2-crash-reporter 作者: tessel 项目源码 文件源码 阅读 17 收藏 0 点赞 0 评论 0
def get_following(self):
        """
        :calls: `GET /users/:user/following <http://developer.github.com/v3/users/followers>`_
        :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.NamedUser.NamedUser`
        """
        return github.PaginatedList.PaginatedList(
            NamedUser,
            self._requester,
            self.url + "/following",
            None
        )
NamedUser.py 文件源码 项目:t2-crash-reporter 作者: tessel 项目源码 文件源码 阅读 18 收藏 0 点赞 0 评论 0
def has_in_following(self, following):
        """
        :calls: `GET /users/:user/following/:target_user <http://developer.github.com/v3/users/followers/#check-if-one-user-follows-another>`_
        :param following: :class:`github.NamedUser.NamedUser`
        :rtype: bool
        """
        assert isinstance(following, github.NamedUser.NamedUser), following
        status, headers, data = self._requester.requestJson(
            "GET",
            self.url + "/following/" + following._identity
        )
        return status == 204
Stargazer.py 文件源码 项目:t2-crash-reporter 作者: tessel 项目源码 文件源码 阅读 17 收藏 0 点赞 0 评论 0
def user(self):
        """
        :type: :class:`github.NamedUser`
        """
        return self._user.value
Stargazer.py 文件源码 项目:t2-crash-reporter 作者: tessel 项目源码 文件源码 阅读 18 收藏 0 点赞 0 评论 0
def _useAttributes(self, attributes):
        if 'starred_at' in attributes:
            self._starred_at = self._makeDatetimeAttribute(attributes['starred_at'])
        if 'user' in attributes:
            self._user = self._makeClassAttribute(github.NamedUser.NamedUser, attributes['user'])
NamedUser.py 文件源码 项目:Repobot 作者: Desgard 项目源码 文件源码 阅读 18 收藏 0 点赞 0 评论 0
def get_followers(self):
        """
        :calls: `GET /users/:user/followers <http://developer.github.com/v3/users/followers>`_
        :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.NamedUser.NamedUser`
        """
        return github.PaginatedList.PaginatedList(
            NamedUser,
            self._requester,
            self.url + "/followers",
            None
        )
NamedUser.py 文件源码 项目:Repobot 作者: Desgard 项目源码 文件源码 阅读 18 收藏 0 点赞 0 评论 0
def get_following(self):
        """
        :calls: `GET /users/:user/following <http://developer.github.com/v3/users/followers>`_
        :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.NamedUser.NamedUser`
        """
        return github.PaginatedList.PaginatedList(
            NamedUser,
            self._requester,
            self.url + "/following",
            None
        )
NamedUser.py 文件源码 项目:Repobot 作者: Desgard 项目源码 文件源码 阅读 20 收藏 0 点赞 0 评论 0
def has_in_following(self, following):
        """
        :calls: `GET /users/:user/following/:target_user <http://developer.github.com/v3/users/followers/#check-if-one-user-follows-another>`_
        :param following: :class:`github.NamedUser.NamedUser`
        :rtype: bool
        """
        assert isinstance(following, github.NamedUser.NamedUser), following
        status, headers, data = self._requester.requestJson(
            "GET",
            self.url + "/following/" + following._identity
        )
        return status == 204
Stargazer.py 文件源码 项目:Repobot 作者: Desgard 项目源码 文件源码 阅读 17 收藏 0 点赞 0 评论 0
def user(self):
        """
        :type: :class:`github.NamedUser`
        """
        return self._user.value
Stargazer.py 文件源码 项目:Repobot 作者: Desgard 项目源码 文件源码 阅读 18 收藏 0 点赞 0 评论 0
def _useAttributes(self, attributes):
        if 'starred_at' in attributes:
            self._starred_at = self._makeDatetimeAttribute(attributes['starred_at'])
        if 'user' in attributes:
            self._user = self._makeClassAttribute(github.NamedUser.NamedUser, attributes['user'])
NamedUser.py 文件源码 项目:TutLab 作者: KingsMentor 项目源码 文件源码 阅读 17 收藏 0 点赞 0 评论 0
def get_followers(self):
        """
        :calls: `GET /users/:user/followers <http://developer.github.com/v3/users/followers>`_
        :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.NamedUser.NamedUser`
        """
        return github.PaginatedList.PaginatedList(
            NamedUser,
            self._requester,
            self.url + "/followers",
            None
        )
NamedUser.py 文件源码 项目:TutLab 作者: KingsMentor 项目源码 文件源码 阅读 18 收藏 0 点赞 0 评论 0
def get_following(self):
        """
        :calls: `GET /users/:user/following <http://developer.github.com/v3/users/followers>`_
        :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.NamedUser.NamedUser`
        """
        return github.PaginatedList.PaginatedList(
            NamedUser,
            self._requester,
            self.url + "/following",
            None
        )
NamedUser.py 文件源码 项目:TutLab 作者: KingsMentor 项目源码 文件源码 阅读 17 收藏 0 点赞 0 评论 0
def has_in_following(self, following):
        """
        :calls: `GET /users/:user/following/:target_user <http://developer.github.com/v3/users/followers/#check-if-one-user-follows-another>`_
        :param following: :class:`github.NamedUser.NamedUser`
        :rtype: bool
        """
        assert isinstance(following, github.NamedUser.NamedUser), following
        status, headers, data = self._requester.requestJson(
            "GET",
            self.url + "/following/" + following._identity
        )
        return status == 204
Stargazer.py 文件源码 项目:TutLab 作者: KingsMentor 项目源码 文件源码 阅读 17 收藏 0 点赞 0 评论 0
def user(self):
        """
        :type: :class:`github.NamedUser`
        """
        return self._user.value
Stargazer.py 文件源码 项目:TutLab 作者: KingsMentor 项目源码 文件源码 阅读 19 收藏 0 点赞 0 评论 0
def _useAttributes(self, attributes):
        if 'starred_at' in attributes:
            self._starred_at = self._makeDatetimeAttribute(attributes['starred_at'])
        if 'user' in attributes:
            self._user = self._makeClassAttribute(github.NamedUser.NamedUser, attributes['user'])
NamedUser.py 文件源码 项目:skill-for-github 作者: dkavanagh 项目源码 文件源码 阅读 19 收藏 0 点赞 0 评论 0
def get_followers(self):
        """
        :calls: `GET /users/:user/followers <http://developer.github.com/v3/users/followers>`_
        :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.NamedUser.NamedUser`
        """
        return github.PaginatedList.PaginatedList(
            NamedUser,
            self._requester,
            self.url + "/followers",
            None
        )
NamedUser.py 文件源码 项目:skill-for-github 作者: dkavanagh 项目源码 文件源码 阅读 19 收藏 0 点赞 0 评论 0
def get_following(self):
        """
        :calls: `GET /users/:user/following <http://developer.github.com/v3/users/followers>`_
        :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.NamedUser.NamedUser`
        """
        return github.PaginatedList.PaginatedList(
            NamedUser,
            self._requester,
            self.url + "/following",
            None
        )
NamedUser.py 文件源码 项目:skill-for-github 作者: dkavanagh 项目源码 文件源码 阅读 18 收藏 0 点赞 0 评论 0
def has_in_following(self, following):
        """
        :calls: `GET /users/:user/following/:target_user <http://developer.github.com/v3/users/followers/#check-if-one-user-follows-another>`_
        :param following: :class:`github.NamedUser.NamedUser`
        :rtype: bool
        """
        assert isinstance(following, github.NamedUser.NamedUser), following
        status, headers, data = self._requester.requestJson(
            "GET",
            self.url + "/following/" + following._identity
        )
        return status == 204
Stargazer.py 文件源码 项目:skill-for-github 作者: dkavanagh 项目源码 文件源码 阅读 20 收藏 0 点赞 0 评论 0
def user(self):
        """
        :type: :class:`github.NamedUser`
        """
        return self._user.value
Stargazer.py 文件源码 项目:skill-for-github 作者: dkavanagh 项目源码 文件源码 阅读 18 收藏 0 点赞 0 评论 0
def _useAttributes(self, attributes):
        if 'starred_at' in attributes:
            self._starred_at = self._makeDatetimeAttribute(attributes['starred_at'])
        if 'user' in attributes:
            self._user = self._makeClassAttribute(github.NamedUser.NamedUser, attributes['user'])
NamedUser.py 文件源码 项目:hudl-bugbounty 作者: lewislabs 项目源码 文件源码 阅读 20 收藏 0 点赞 0 评论 0
def get_followers(self):
        """
        :calls: `GET /users/:user/followers <http://developer.github.com/v3/users/followers>`_
        :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.NamedUser.NamedUser`
        """
        return github.PaginatedList.PaginatedList(
            NamedUser,
            self._requester,
            self.url + "/followers",
            None
        )
NamedUser.py 文件源码 项目:hudl-bugbounty 作者: lewislabs 项目源码 文件源码 阅读 19 收藏 0 点赞 0 评论 0
def get_following(self):
        """
        :calls: `GET /users/:user/following <http://developer.github.com/v3/users/followers>`_
        :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.NamedUser.NamedUser`
        """
        return github.PaginatedList.PaginatedList(
            NamedUser,
            self._requester,
            self.url + "/following",
            None
        )
NamedUser.py 文件源码 项目:hudl-bugbounty 作者: lewislabs 项目源码 文件源码 阅读 19 收藏 0 点赞 0 评论 0
def has_in_following(self, following):
        """
        :calls: `GET /users/:user/following/:target_user <http://developer.github.com/v3/users/followers/#check-if-one-user-follows-another>`_
        :param following: :class:`github.NamedUser.NamedUser`
        :rtype: bool
        """
        assert isinstance(following, github.NamedUser.NamedUser), following
        status, headers, data = self._requester.requestJson(
            "GET",
            self.url + "/following/" + following._identity
        )
        return status == 204
Stargazer.py 文件源码 项目:hudl-bugbounty 作者: lewislabs 项目源码 文件源码 阅读 17 收藏 0 点赞 0 评论 0
def user(self):
        """
        :type: :class:`github.NamedUser`
        """
        return self._user.value
Stargazer.py 文件源码 项目:hudl-bugbounty 作者: lewislabs 项目源码 文件源码 阅读 21 收藏 0 点赞 0 评论 0
def _useAttributes(self, attributes):
        if 'starred_at' in attributes:
            self._starred_at = self._makeDatetimeAttribute(attributes['starred_at'])
        if 'user' in attributes:
            self._user = self._makeClassAttribute(github.NamedUser.NamedUser, attributes['user'])


问题


面经


文章

微信
公众号

扫码关注公众号