github_services.py 文件源码

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

项目:support-tools 作者: google 项目源码 文件源码
def __init__(self, github_owner_username, github_repo_name,
               github_oauth_token, rate_limit, http_instance=None):
    """Initialize the GitHubService.

    Args:
      github_owner_username: The username of the owner of the repository.
      github_repo_name: The GitHub repository name.
      github_oauth_token: The oauth token to use for the requests.
      rate_limit: Whether or not to rate limit GitHub API requests.
      http_instance: The HTTP instance to use, if not set a default will be
          used.
    """
    self.github_owner_username = github_owner_username
    self.github_repo_name = github_repo_name
    self._github_oauth_token = github_oauth_token
    self._rate_limit = rate_limit
    self._http = http_instance if http_instance else httplib2.Http()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号