Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(8)  |  Call(4)  |  Derive(0)  |  Import(4)

src/s/c/screencloud-plugins-HEAD/dropbox/modules/dropbox/client.py   screencloud-plugins(Download)
 
from .rest import ErrorResponse, RESTClient
from .session import BaseSession, DropboxSession, DropboxOAuth2Session
 
 
                raise ValueError("invalid format for oauth2_access_token: %r"
                                 % (oauth2_access_token,))
            self.session = DropboxOAuth2Session(oauth2_access_token, locale)
        elif isinstance(oauth2_access_token, DropboxSession):
            # Backwards compatibility with OAuth 1

src/o/r/orphilia-dropbox-HEAD/modules/dropbox/client.py   orphilia-dropbox(Download)
 
from .rest import ErrorResponse, RESTClient
from .session import BaseSession, DropboxSession, DropboxOAuth2Session
 
 
                raise ValueError("invalid format for oauth2_access_token: %r"
                                 % (oauth2_access_token,))
            self.session = DropboxOAuth2Session(oauth2_access_token, locale)
        elif isinstance(oauth2_access_token, DropboxSession):
            # Backwards compatibility with OAuth 1

src/d/r/dropbox2-1.7.1/dropbox/client.py   dropbox2(Download)
 
from .rest import ErrorResponse, RESTClient
from .session import BaseSession, DropboxSession, DropboxOAuth2Session
from . import metadata
 
    def __init__(self, oauth2_access_token, locale=None, rest_client=None):
        if rest_client is None:
            rest_client = RESTClient
        if isinstance(oauth2_access_token, basestring):
            self.session = DropboxOAuth2Session(oauth2_access_token, locale)

src/d/r/dropbox-2.0.0/dropbox/client.py   dropbox(Download)
 
from .rest import ErrorResponse, RESTClient
from .session import BaseSession, DropboxSession, DropboxOAuth2Session
 
 
                raise ValueError("invalid format for oauth2_access_token: %r"
                                 % (oauth2_access_token,))
            self.session = DropboxOAuth2Session(oauth2_access_token, locale)
        elif isinstance(oauth2_access_token, DropboxSession):
            # Backwards compatibility with OAuth 1