services.py 文件源码

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

项目:decadegraphy 作者: decadegraphy 项目源码 文件源码
def _populate_google_calendar_http_handler(path_to_key_file: str):
    """Returns an authorized http handler instance for building the services.

    It takes an path to the service account key file.
    """
    credentials = ServiceAccountCredentials.from_json_keyfile_name(
        path_to_key_file, scopes=API_SCOPES)
    http_auth = credentials.authorize(Http())
    return http_auth
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号