예제 #1
0
 def _get_auth_session(self):
     credentials = service_account.Credentials.from_service_account_file(
         self.credentials_path, scopes=SCOPES)
     http = httplib2.Http()
     return AuthorizedHttp(credentials, http=http)
예제 #2
0
파일: user.py 프로젝트: chreggi/RamCal
 def _init_service(self):
     self.service = discovery.build('calendar',
                                    'v3',
                                    http=AuthorizedHttp(
                                        self.credentials,
                                        http=httplib2shim.Http()))