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
评论列表
文章目录