def _init_service(self, secrets): """ Build an authenticated google api request service using the given secrets file """ http = self.authenticate(secrets) return auth.init_service(http)
def _init_service(self): credentials = SignedJwtAssertionCredentials( self.client_email, self.private_key, self.scope) http = Http() http = credentials.authorize(http) return auth.init_service(http)