Exemplo n.º 1
0
 def _create_service(self):
   credentials = oauth.get_credentials(
       scope=OAUTH_SCOPE, storage_key='Grow SDK')
   http = httplib2.Http(ca_certs=utils.get_cacerts_path())
   http = credentials.authorize(http)
   return discovery.build('drive', 'v2', http=http)
Exemplo n.º 2
0
def patched_get_credentials(*args):
    """Gets credentials from Grow's flow."""
    return oauth.get_credentials(scope=OAUTH_SCOPE, storage_key=STORAGE_KEY)