def openClient(): config = Authenticator.load_config("config.ini") auth = Authenticator(config) reqToken = auth.obtain_request_token() accToken = getAccToken(reqToken) print "Token: %s" % str(accToken) client = DropboxClient("api.dropbox.com", "api-content.dropbox.com", 80, auth, accToken) return client
def drop_req(request): config = './dropbox-client-python/config/testing.ini' auth = Authenticator(Authenticator.load_config(config)) req_tok = auth.obtain_request_token() auth_url = auth.build_authorize_url(req_tok) return auth_url