def __init__(self):
cred = ServiceAccountCredentials.from_json_keyfile_name(
self.SERVICE_SECRET_FILE,
self.scope)
http = cred.authorize(httplib2.Http())
self._client = build(self.service, self.version, http=http)
文章目录